1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 02:27:59 +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 * @param list<int> $arr
*/ */
function cartesianProduct(array $arr) : void { function cartesianProduct(array $arr) : void {
for ($i = 20; $arr[$i] === 5 && $i > 0; $i--) {} for ($i = 20; $i > 0 && $arr[$i] === 5 ; $i--) {}
}', }',
], ],
'noCrashOnLongThing' => [ 'noCrashOnLongThing' => [