scoutapp / scout-apm-php

ScoutAPM's Base PHP Agent - See README for Laravel, Symfony, and other framework support.
https://scoutapm.com
MIT License
16 stars 3 forks source link

Added reference to decorated lastCompiled property if it exists #308

Closed asgrim closed 9 months ago

asgrim commented 1 year ago
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!).