Skip to content

Commit

Permalink
[Core] Remove unnecessary counter tweak for infinite loop on PhpFileP…
Browse files Browse the repository at this point in the history
…rocessor (#1777)
  • Loading branch information
samsonasik committed Feb 8, 2022
1 parent 1a9a859 commit 43c6725
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Application/FileProcessor/PhpFileProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,7 @@ public function process(File $file, Configuration $configuration): array
}

// 2. change nodes with Rectors
$loopCounter = 0;
do {
++$loopCounter;

if ($loopCounter === 10) { // ensure no infinite loop
break;
}

$file->changeHasChanged(false);
$this->refactorNodesWithRectors($file, $configuration);

Expand Down

0 comments on commit 43c6725

Please sign in to comment.