Browse Source

minor: Revert "minor: prevent BC break in Runner" (#6637)

Revert "minor: prevent BC break in Runner (#6634)"

This reverts commit abf6c314b99bd6dc156ab8e39967956141d8594c.
Dariusz Rumiński 2 years ago
parent
commit
75f2f681e7
2 changed files with 1 additions and 2 deletions
  1. 0 1
      .php-cs-fixer.php-lowest.php
  2. 1 1
      src/Runner/Runner.php

+ 0 - 1
.php-cs-fixer.php-lowest.php

@@ -26,7 +26,6 @@ $config->getFinder()->notPath([
     'src/DocBlock/Annotation.php',
     'src/Doctrine/Annotation/Tokens.php',
     'src/Tokenizer/Tokens.php',
-    'src/Runner/Runner.php',
 ]);
 
 $config->setRules([

+ 1 - 1
src/Runner/Runner.php

@@ -68,7 +68,7 @@ final class Runner
      * @param list<FixerInterface>       $fixers
      */
     public function __construct(
-        $finder,
+        \Traversable $finder,
         array $fixers,
         DifferInterface $differ,
         ?EventDispatcherInterface $eventDispatcher,