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:
parent
8414d70a77
commit
fecc4eb274
@ -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' => [
|
||||
|
Loading…
Reference in New Issue
Block a user