1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 12:24:49 +01:00

Add non-emptiness check

This commit is contained in:
Matt Brown 2021-01-10 21:54:49 -05:00 committed by Daniil Gentili
parent 99da1daae5
commit c6e09db4ff
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -122,7 +122,7 @@ class TemporaryUpdateTest extends \Psalm\Tests\TestCase
$this->assertSame($error_positions[$i + 1], $found_positions, 'stage ' . ($i + 2));
}
if ($test_save) {
if ($test_save && $file_stages) {
$last_file_stage = end($file_stages);
foreach ($last_file_stage as $file_path => $_) {