Skip to content

Commit

Permalink
fix: Disable PHPCSFixer on specific files.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 13, 2022
1 parent 7280ebc commit eb61a90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
->getFinder()
->ignoreDotFiles(false)
->notPath('src/Contract/Operation/Allable.php')
// This is for the test "testAllowsDifferentClassesWithSameInterfaceButInDifferentOrder"
// See https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/3871
->notPath('tests/unit/Iterator/TypedIteratorTest.php')
->name(['.php_cs.dist']);

$rules = $config->getRules();
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Iterator/TypedIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function count(): int

public function testAllowsDifferentClassesWithSameInterfaceButInDifferentOrder(): void
{
$obj1 = new class() implements Countable, IteratorAggregate {
$obj1 = new class() implements IteratorAggregate, Countable {
public function count(): int
{
return 0;
Expand Down

0 comments on commit eb61a90

Please sign in to comment.