I'm using Rector to automatically refact my code..
It uses the annotation @noRector to ignore specific lines (ref.: https://github.com/rectorphp/rector/blob/master/docs/how_to_ignore_rule_or_paths.md#in-a-file).
But the annotation @noRector is not read by Doctrine Annotations and I get the following error:
In FileLoader.php line 173:
[Semantical Error] The annotation "@noRector" in method App\Entity\MyEntity::getUploadedOn() was never imported. Did you maybe forget to add a "use" statement for this annotation? in . (which is being imported from "/Users/Aerendir/Doc
uments/path/to/my/app/config/routes/api_platform.yaml"). Make sure there is a loader supporting the "api_platform" type.
In AnnotationException.php line 39:
[Semantical Error] The annotation "@noRector" in method App\Entity\MyEntity::getUploadedOn() was never imported. Did you maybe forget to add a "use" statement for this annotation?
I'm using Rector to automatically refact my code..
It uses the annotation
@noRectorto ignore specific lines (ref.: https://github.com/rectorphp/rector/blob/master/docs/how_to_ignore_rule_or_paths.md#in-a-file).But the annotation
@noRectoris not read by Doctrine Annotations and I get the following error: