Repository navigation
[13.x] Cloud exceptions follow-ups - #62142
Merged
taylorotwell merged 2 commits intoOct 22, 2026
Merged
Conversation
|
Thanks for submitting a PR! Note that draft PRs are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface. Pull requests that are abandoned in draft may be closed due to inactivity. |
This was referenced Oct 22, 2026
timacdonald
force-pushed
the
13.x-blade-mapper-stale-paths
branch
from
October 22, 2026 05:32
1dcad34 to
1b13f12
Compare
timacdonald
force-pushed
the
13.x-blade-mapper-stale-paths
branch
from
October 22, 2026 05:32
1b13f12 to
058631e
Compare
timacdonald
marked this pull request as ready for review
October 22, 2026 05:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ensures the BladeMapper can work across different renderings of a template. This mostly impacts rendering mail on the queue but isn't impossible to happen with a single web request.
The Cloud exception reporter resolves its
BladeMapperonce and keeps it for the life of the process.BladeMapper::findCompiledView()caches the compiled paths it knows about withonce(), and those paths only include the views being rendered when the first view exception is reported.Afterwards, a view exception thrown from a different view keeps the compiled cache path and line instead of being mapped back to its Blade source. This affects any process that reports more than one view exception, most notably queue workers rendering mail and notification views. Octane is unaffected, as it flushes
once()between requests.The reporter now resolves the mapper once for each reported exception, and restores the previous mapper after a nested report, as it already does for the view exception flag.
Two tests cover this: one reporting view exceptions from two different views in the same process, and one asserting the mapper is resolved for each reported view exception.