diff --git a/tests/Loop/WhileTest.php b/tests/Loop/WhileTest.php index 8550ed5a2..220829e0f 100644 --- a/tests/Loop/WhileTest.php +++ b/tests/Loop/WhileTest.php @@ -358,7 +358,7 @@ class WhileTest extends \Psalm\Tests\TestCase function foo() : void { $pointers = ["hi"]; - while (rand(0, 1) && 0 < ($parent = 0)) { + while (rand(0, 1) && 1 < ($parent = 0)) { print $pointers[$parent]; } }'