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
Fixer breaks PhpDoc before return #7401
Comments
I have reproduced this on latest version of the tool. |
I believe we need |
@Wirone I will try |
@Wirone done! |
Bug report
Description
phpdoc_to_comment
rule breaks PhpDoc that is used to declare returned value from within a function.Runtime version
PHP CS Fixer 3.28.0 Jump & Run by Fabien Potencier and Dariusz Ruminski.
PHP runtime: 8.2.11
Used command
php ./vendor/bin/php-cs-fixer fix --allow-risky=yes --config=.php-cs-fixer.dist.php
Configuration file
Code snippet that reproduces the problem
Expected:
Actual:
The text was updated successfully, but these errors were encountered: