mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
add test
This commit is contained in:
parent
861d2187dd
commit
ea50e5db4d
@ -3046,6 +3046,13 @@ class ConditionalTest extends \Psalm\Tests\TestCase
|
||||
}',
|
||||
'error_message' => 'TypeDoesNotContainType',
|
||||
],
|
||||
'falsyValuesInIf' => [
|
||||
'<?php
|
||||
if (0) {
|
||||
echo 123;
|
||||
}',
|
||||
'error_message' => 'TypeDoesNotContainType',
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user