1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 16:59:45 +01:00

Rework test as it was a false negative

This commit is contained in:
robchett 2023-10-26 11:25:12 +01:00 committed by Robert Chettleburgh
parent 8414d70a77
commit fecc4eb274

View File

@ -143,7 +143,7 @@ class ForTest extends TestCase
* @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' => [