mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
add test
This commit is contained in:
parent
d5eb471688
commit
cdfc119e33
@ -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;
|
||||
}
|
||||
}'
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user