mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
change test to show while loop with truthy value is still inferred
This commit is contained in:
parent
f9b37cea5b
commit
de27693015
@ -712,7 +712,7 @@ class WhileTest extends \Psalm\Tests\TestCase
|
|||||||
'<?php
|
'<?php
|
||||||
function getResultWithRetry(): string
|
function getResultWithRetry(): string
|
||||||
{
|
{
|
||||||
while (true) {
|
while (new stdClass) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
}'
|
}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user