mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Prevent issues being forgotten when another error crops up
This commit is contained in:
parent
c383e61805
commit
d9e972d2f0
@ -1083,6 +1083,45 @@ class TemporaryUpdateTest extends \Psalm\Tests\TestCase
|
||||
],
|
||||
'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]],
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user