-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #5806 DoctrineAnnotationFixer - Add template to ignored_tags (aka…
…lineskou) This PR was merged into the 3.0 branch. Discussion ---------- DoctrineAnnotationFixer - Add template to ignored_tags Using `'doctrine_annotation_braces' => ['syntax' => 'with_braces']` it wants to add `()` to the ``@template`` tag, but then phpstorm doesn't recognize the template as valid ``@template`() T` so ``@param` T` and ``@return` T` would be marked as not found. This fixes it by adding the `template` keyword to the ignored list. I saw that both phpstan https://phpstan.org/blog/generics-in-php-using-phpdocs and psalm https://psalm.dev/docs/annotating_code/templated_annotations/ use it without parentheses. Did all the checks and updated the docs. Commits ------- fbc46e2 DoctrineAnnotationFixer - Add template to ignored_tags
- Loading branch information
Showing
5 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters