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:
parent
99da1daae5
commit
c6e09db4ff
@ -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 => $_) {
|
||||
|
Loading…
Reference in New Issue
Block a user