Skip to content

Commit

Permalink
Fix: Skip part of OperatorSpacingSniff because its incorrect behavior…
Browse files Browse the repository at this point in the history
… in `declare(strict_types=1);`
  • Loading branch information
OndraM committed May 23, 2024
1 parent 0551ba6 commit 67773cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@
// We allow empty catch statements (but they must have comment - see EmptyCatchCommentSniff)
EmptyStatementSniff::class . '.DetectedCatch' => null,

// Skip because of its attempts to add spaces in declare(strict_types=1); starting with ECS 12.2.0
// @TODO: In future ECS versions try whether its is still broken or this skip could be removed
OperatorSpacingSniff::class . '.NoSpaceAfter' => null,
OperatorSpacingSniff::class . '.NoSpaceBefore' => null,

// Skip unwanted rules from DocCommentSniff
DocCommentSniff::class . '.ContentAfterOpen' => null,
DocCommentSniff::class . '.ContentBeforeClose' => null,
Expand Down

0 comments on commit 67773cd

Please sign in to comment.