1
0
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:
orklah 2021-09-04 14:10:12 +02:00
parent f9b37cea5b
commit de27693015

View File

@ -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 "";
} }
}' }'