phpDocumentor / Reflection

Reflection library to do Static Analysis for PHP Projects
MIT License
117 stars 51 forks source link

Constants in traits cannot be parsed #305

Closed mvriel closed 1 year ago

mvriel commented 1 year ago

The validation in the construction of constants checked for the Trait factory and not for the Trait AST node. This meant that for traits it can never parse.

This fix is needed to complete https://github.com/phpDocumentor/phpDocumentor/pull/3394