You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, first, thank you so much for php-cs-fixer and the work on it.
Now I'm sorry, but I'm going to describe an issue: PHP 8+ allows to use of exception in expression, and sometimes php-cs-fixer acts bad about it...
Bug report
PHP CS Version:
PHP CS Fixer 3.9.5 Grand Awaiting by Fabien Potencier and Dariusz Ruminski.
PHP runtime: 8.1.8
Stack trace
[InvalidArgumentException]
Invalid param $startIndex - not a proper block "start".
PhpCsFixer\Tokenizer\Tokens->findOppositeBlockEdge()
in /api/tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Tokens.php at line 424
PhpCsFixer\Tokenizer\Tokens->findBlockEnd()
in /api/tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/SingleLineThrowFixer.php at line 85
PhpCsFixer\Fixer\FunctionNotation\SingleLineThrowFixer->applyFix()
in /api/tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/AbstractFixer.php at line 75
PhpCsFixer\AbstractFixer->fix()
in /api/tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/Runner/Runner.php at line 173
PhpCsFixer\Runner\Runner->fixFile()
in /api/tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/Runner/Runner.php at line 114
PhpCsFixer\Runner\Runner->fix()
in /api/tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/Console/Command/FixCommand.php at line 307
PhpCsFixer\Console\Command\FixCommand->execute()
in /api/tools/php-cs-fixer/vendor/symfony/console/Command/Command.php at line 291
[ ... ]
Hello, first, thank you so much for php-cs-fixer and the work on it.
Now I'm sorry, but I'm going to describe an issue: PHP 8+ allows to use of exception in expression, and sometimes php-cs-fixer acts bad about it...
Bug report
PHP CS Version:
Stack trace
Code snippet that reproduces the problem
Fix if you have the issue
The text was updated successfully, but these errors were encountered: