Skip to content

Commit 84c44de

Browse files
committed
Cap fixed-point loop at 5 iterations
1 parent 5a6b959 commit 84c44de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Application/FileProcessor.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* Safety cap for the fixed-point loop; a well-behaved rule set settles within a few passes,
3737
* so this only trips on a non-idempotent rule that keeps changing the same node.
3838
*/
39-
private const int MAX_ITERATIONS = 40;
39+
private const int MAX_ITERATIONS = 5;
4040

4141
public function __construct(
4242
private BetterStandardPrinter $betterStandardPrinter,

0 commit comments

Comments
 (0)