lisachenko / z-engine

:zap: PHP Engine Direct API
MIT License
448 stars 22 forks source link

Incorrect scope when adding a new method to the class #2

Closed lisachenko closed 4 years ago

lisachenko commented 4 years ago

Currently ReflectionClass->addMethod() doesn't adjust the scope of method created from closure to the class itself, thus no access to the private/protected members.