-
Notifications
You must be signed in to change notification settings - Fork 230
Description
I'm using Phan to statically analyze my code base.
It uses the annotation @suppress to suppress errors (ref.: https://github.com/phan/phan/wiki/Annotating-Your-Source-Code#suppress).
But the annotation @suppress is not read by Doctrine Annotations and I get the following error:
[ERROR] /Users/Aerendir/Documents/JooServer/Lab/Bundles/bundle-users/src/Command/AbstractUserCommand.php
Line: 23
Message: Could not parse class "SerendipityHQ\Bundle\UsersBundle\Command" for annotations. [Semantical Error]
The annotation "@Suppress" in property SerendipityHQ\Bundle\UsersBundle\Command\AbstractUserCommand::$user
was never imported. Did you maybe forget to add a "use" statement for this annotation?
I get it through php-translation/symfony-bundle, running the command translation:extract (opened issue: php-translation/symfony-bundle#420).
In this moment is practically impossible for me to extract new versions using the bundle.
The fix is as easy as adding the annotation to the AnnotationReader::$globalIgnoredNames.