phpDocumentor / Reflection

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

Fix #233 inline defined const #234

Closed jaapio closed 2 years ago

jaapio commented 2 years ago

Defines in a method or function are allowed in PHP. However, they are added to the global scope. As this library now processes the full method body to be able to add more information into the reflected code, this caused issues.

As the defines are added to the global scope of the execution they are basically defined at a file-level when a define was executed. This is the best we can get right now to reflect what the application would do at runtime.

Fixes #233