Skip to content

Commit

Permalink
Rework test as it was a false negative
Browse files Browse the repository at this point in the history
  • Loading branch information
robchett committed Nov 3, 2023
1 parent 8414d70 commit fecc4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Loop/ForTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function test(Node $head) {
* @param list<int> $arr
*/
function cartesianProduct(array $arr) : void {
for ($i = 20; $arr[$i] === 5 && $i > 0; $i--) {}
for ($i = 20; $i > 0 && $arr[$i] === 5 ; $i--) {}
}',
],
'noCrashOnLongThing' => [
Expand Down

0 comments on commit fecc4eb

Please sign in to comment.