-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
[v2] Intersection types not recognized in docblocks #6
Comments
For reference, please see: squizlabs/PHP_CodeSniffer#2410 Originally posted by @michalbundyra at zendframework/zend-coding-standard#16 (comment) |
There is no sniff for this yet. |
I would rather classify this as a bug as reformatted intersect types become invalid. Intersection types are fairly new (eg PhpStorm added support for them in 2018, phpstan in 2017 with 0.9 release, PSR-5 is still in draft however). We won't see them often and when they are used cs ignore rules can be used until support added in upstream |
Fixed by squizlabs/PHP_CodeSniffer#2919 |
Fixed in #49 |
2.0.0-alpha.3 standard does not recognize and improperly reformats intersect types(&) in phpdoc:
Intersections types are supported by PhpStorm, phpstan and present in the draft for phpdoc PSR
https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc.md#details
Originally posted by @Xerkus at zendframework/zend-coding-standard#16
The text was updated successfully, but these errors were encountered: