1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00
This commit is contained in:
orklah 2021-10-10 10:31:30 +02:00
parent d5eb471688
commit cdfc119e33

View File

@ -156,6 +156,26 @@ class ForTest extends \Psalm\Tests\TestCase
return $data;
}'
],
'InfiniteForLoop' => [
'<?php
/**
* @return int
*/
function g() {
for (;;) {
return 1;
}
}
/**
* @return int
*/
function h() {
for (;1;) {
return 1;
}
}'
],
];
}