You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This piece of code prepends a "<?php " string to the original content, but if the content already has the "<?php " opening tag, it errors and breaks the runtime.
The text was updated successfully, but these errors were encountered:
It has something to do with an anonymous class, the reflection class returns no namespace for it, even though it is on a namespaced file. To be honest I don't know if it should return a namespace or not, I also don't remember how anonymous functions behave in that scenario. Anyhow I think there could be a condition for this kind of class: https://github.com/doctrine/annotations/pull/491/files
Reference:
https://github.com/doctrine/annotations/blame/6d4929214d8593ed80364267d6665edd70c2ecbe/lib/Doctrine/Common/Annotations/PhpParser.php#L60
This piece of code prepends a "<?php " string to the original content, but if the content already has the "<?php " opening tag, it errors and breaks the runtime.
The text was updated successfully, but these errors were encountered: