Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added reference to decorated lastCompiled property if it exists #308

Merged
merged 4 commits into from
Dec 4, 2023

Conversation

asgrim
Copy link
Collaborator

@asgrim asgrim commented Aug 24, 2023

ReflectionException: Property Scoutapm\Laravel\View\Engine\ScoutViewEngineDecorator::$lastCompiled does not exist

Something (not sure what, at present) is trying to reflect on the view engine (to access the protected property $lastCompiled), which we decorate with ScoutViewEngineDecorator; but since ScoutViewEngineDecorator does not have that property, it fails. In order to play nicely, this PR proposes adding a reference to the decorated property (if it exists, since properties are not part of interfaces!).

@asgrim asgrim added the bug Something isn't working label Aug 24, 2023
@asgrim asgrim self-assigned this Aug 24, 2023
@asgrim asgrim force-pushed the possible-fix-for-last-compiled-reflection-exception branch from 8e6d687 to 1382f81 Compare August 24, 2023 09:27
@asgrim asgrim marked this pull request as ready for review October 5, 2023 12:06
@asgrim asgrim requested a review from lancetarn October 5, 2023 12:10
@asgrim asgrim added this to the 8.10.1 milestone Oct 5, 2023
@asgrim asgrim merged commit 5f0b665 into 8.10.x Dec 4, 2023
692 checks passed
@asgrim asgrim deleted the possible-fix-for-last-compiled-reflection-exception branch December 7, 2023 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants