1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Prevent issues being forgotten when another error crops up

This commit is contained in:
Matthew Brown 2019-02-07 13:56:00 -05:00
parent c383e61805
commit d9e972d2f0

View File

@ -1083,6 +1083,45 @@ class TemporaryUpdateTest extends \Psalm\Tests\TestCase
], ],
'error_positions' => [[238, 238], []], 'error_positions' => [[238, 238], []],
], ],
'fixClassRef' => [
[
[
getcwd() . DIRECTORY_SEPARATOR . 'A.php' => '<?php
class SomeClass {}
class B {
/** @var ?string */
private static $s = null;
public function foo() : void {
new SomeClas();
}
public function bar() : void {
self::$s = "hello";
}
}',
],
[
getcwd() . DIRECTORY_SEPARATOR . 'A.php' => '<?php
class SomeClass {}
class B {
/** @var ?string */
private static $s = null;
public function foo() : void {
new SomeClas();
}
public function bar() : void {
self::$si = "hello";
}
}',
],
],
'error_positions' => [[306], [306, 452]],
],
]; ];
} }
} }