goaop / framework

:gem: Go! AOP PHP - modern aspect-oriented framework for the new level of software development
go.aopphp.com
MIT License
1.66k stars 163 forks source link

Function ReflectionType::__toString() is deprecated #438

Closed eenchev closed 3 years ago

eenchev commented 4 years ago

Running on PHP 7.4, this line throws exception: https://github.com/goaop/framework/blob/b39293743d69722d9bb557804d29bf1315d73e79/src/Proxy/ClassProxyGenerator.php#L233 We should replace the string casting with the getName() method on ReflectionType, or make sure we use the overloaded ReflectionType from goaop/parser-reflection library

lisachenko commented 4 years ago

Yes, it would be nice to move to new method to prevent deprecation errors.