-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phpDox crash on execution #72
Comments
That's a crash within the staticReflection. Can you provide me with a source tree that triggers this behavior? It looks like the code parsed is having a modified (private, protected, ...) for a property that is invalid. Usually that code shouldn't even pass a php lint check. |
I have no idea what line of code it's crashing on. I'm attempting to switch from phpDocumentor to phpDox, and haven't had any issues with lint, phpDocumentor or phpunit in this project earlier. |
The argument for setModifiers was int(258) - wouldn't this indicate abstract public function? |
I fixed this by modifying pdepend/reflection/api/StaticReflectionProperty.php and adding a new const: const IS_ABSTRACT = 2; and modifying line 219 to include self::IS_ABSTRACT in the expected bitmask. Hope that helps somebody else. \Reflection::getModifierNames agreed that 258 is the mask for abstract and public. |
Thank you for finding and fixing it. Forwarding this to Mapi. |
I'm using phpDox 0.4.0 installed using PEAR
The text was updated successfully, but these errors were encountered: