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
phpdoc_types_order
bug with intersection type
#6238
Comments
👍 on this issue. It broke our CI I'm trying to find the culprit in the changelog/diff... |
Same issue here... we want to keep our intersection types. I'll postpone the upgrade for now. |
I may have found the culprit: 6bf7ba5#diff-de9d90510a6626bf0643e8978fbe25c91ff3fc48e61b0b5ccde5edd754bf70ccR389 I'll try to expand the tests to create a regression one |
Sorry I may not have all the knowledge to fix this, but I've at least ported the reproducer into a test: #6245 |
which does a plain I don't know why this wasn't an issue before, it probably bailed out due to stricter regexes. The issue is that that change is not feasible at all: changing order of types without taking account of parentheses or mixes of |
@Jean85 you were going right direction, take a look at the fix: #6243. In deed the root of problem was |
To increase and maintain code quality has been added using php-cs-fixer and typo3/coding-standards to this package. CGL run changed two method return types in a way which leads to a bunch of fails in core phpstan scans. This is a already known bug of php-cs-fixer, reported for version 3.5.0 but also 3.6.0 will change this the same way. This patch reverts the return-type docblock change for * 'BaseTestClass::getAccessibleMock()' * 'BaseTestClass::getAccessibleMockForAbstractClass()' and additional add following to composer.json conflict section: "friendsofphp/php-cs-fixer": "3.5.0 || 3.6.0" Further reads: PHP-CS-Fixer/PHP-CS-Fixer#6238 FriendsOfTYPO3/tea#371 FriendsOfTYPO3/tea@a999668 Releases: main, 7, 6
Bug report
v3.5.0
Code snippet that reproduces the problem
.php-cs-fixer.php
:The text was updated successfully, but these errors were encountered: