Roave / BetterReflection

:crystal_ball: Better Reflection is a reflection API that aims to improve and provide more features than PHP's built-in reflection API.
MIT License
1.18k stars 131 forks source link

Failing test: missing class method when trait aliases are used #1453

Open janedbal opened 1 week ago

janedbal commented 1 week ago

See real reflection result: https://3v4l.org/TcNgp

janedbal commented 1 week ago

For a reference, it is causing false-positives in our PHPStan-based dead-code-detector: https://github.com/shipmonk-rnd/dead-code-detector/pull/70/files#diff-16ea0828915ea4592d186f3dfab87f40606c659da6d84ed4204d69a8d34cf058R6

Ocramius commented 1 week ago

I'm really really really convinced that traits should never have existed in PHP :D

janedbal commented 1 week ago

I'm really really really convinced that traits should never have existed in PHP :D

Totally agree! The dead-code-detector would have been 3 times less complex without them :)