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
I ran into a problem with the symplify LineLengthFixer when I use a fixer that removes unneded parantheses on object creation as default parameter for class properties in constructor property promotion.
I checked the error with Slevomat NewWithoutParantheses sniff and php-cs-fixer NewWithParantheses configured to remove them.
I am not sure if this is an issue with ECS, the php-cs-fixer or the slevomat coding standard sniffs.
./vendor/bin/ecs --fix --debug
[fixer] PhpCsFixer\Fixer\Operator\NewWithParenthesesFixer
[fixer] Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer
[ERROR] System error: "Fixing of "/app/Test.php" file by "Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer" failed: Cannot access offset of type null on SplFixedArray in file /app/vendor/symplify/easy-coding-standard/vendor/symplify/coding-standard/src/TokenRunner/Analyzer/FixerAnalyze r/BlockFinder.php on line 43"Run ECS with "--debug" option and post the report here: https://github.com/symplify/symplify/issues/new in /app/Test.php:159
I am running EasyCodingStandard 12.1.14 and php 8.3
The text was updated successfully, but these errors were encountered:
I ran into a problem with the symplify LineLengthFixer when I use a fixer that removes unneded parantheses on object creation as default parameter for class properties in constructor property promotion.
I checked the error with Slevomat NewWithoutParantheses sniff and php-cs-fixer NewWithParantheses configured to remove them.
I am not sure if this is an issue with ECS, the php-cs-fixer or the slevomat coding standard sniffs.
ecs.php
Test.php
ecs output:
I am running EasyCodingStandard 12.1.14 and php 8.3
The text was updated successfully, but these errors were encountered: