Skip to content

[L9] Undocumented breaking change in Illuminate\Mail\Message::embed() #41837

Answered by mbabker
mortenscheel asked this question in Q&A
Discussion options

You must be logged in to vote

To me it looks like a case of unintended use of an API happened to work thanks to the implementation details of the underlying code. It basically boils down to Swift_ByteStream_FileByteStream::read() doesn't have the same is_readable($path) check that Symfony\Component\Mime\Part\DataPart::fromPath() does before trying to open a file resource. I doubt it's worth calling this specific use case out in the upgrade guide just because of how much of an edge case it looks to be, plus it borderline not being "correct" API usage.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mortenscheel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants