mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +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
|
||||
function getResultWithRetry(): string
|
||||
{
|
||||
while (true) {
|
||||
while (new stdClass) {
|
||||
return "";
|
||||
}
|
||||
}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user