Ким Антон

Results 6 comments of Ким Антон

Trace: ``` PHP Fatal error: Uncaught Error: Cannot access private property App\ClassWithFinalMethodAndPrivateProperty::$prop in ~/vendor/ocramius/proxy-manager/src/ProxyManager/GeneratorStrategy/EvaluatingGeneratorStrategy.php(70) : eval()'d code:96 Stack trace: #0 ~/vendor/ocramius/proxy-manager/src/ProxyManager/GeneratorStrategy/EvaluatingGeneratorStrategy.php(70) : eval()'d code(101): ProxyManagerGeneratedProxy\__PM__\App\ClassWithFinalMethodAndPrivateProperty\Generated4fba263a26adebb7c3e20106c2b98b63->ProxyManagerGeneratedProxy\__PM__\App\ClassWithFinalMethodAndPrivateProperty\{closure}() #1 ~/src/ClassWithFinalMethodAndPrivateProperty.php(11): ProxyManagerGeneratedProxy\__PM__\App\ClassWithFinalMethodAndPrivateProperty\Generated4fba263a26adebb7c3e20106c2b98b63->__get('prop') #2 ~/src/a.php(20):...

So it's pretty expected behavior, and ProxyManager users just should keep in mind that ValueHolder does not really good work with final methods?

Well I would like also to tell my background story of this case. Hope it could be helpfully for people who google this problem. It happened when I use Symfony...

Do you mean ValueHolder should not support classes with `final` methods even if it can work until accessing `private` members?

Your code works okay. Upd. I meant your code with using proxy ``` 1 2 1 ``` But I see what do you mean, there is could be more problems...