mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Add more tests for constructor checks after changes
This commit is contained in:
parent
92e11fd51b
commit
4e3be4be40
@ -1081,6 +1081,29 @@ class FileUpdateTest extends TestCase
|
||||
],
|
||||
'error_message' => 'NullableReturnStatement'
|
||||
],
|
||||
'invalidateAfterPropertyChange' => [
|
||||
'file_stages' => [
|
||||
[
|
||||
getcwd() . DIRECTORY_SEPARATOR . 'A.php' => '<?php
|
||||
namespace Foo;
|
||||
|
||||
class A {
|
||||
/** @var string */
|
||||
public $foo = "bar";
|
||||
}',
|
||||
],
|
||||
[
|
||||
getcwd() . DIRECTORY_SEPARATOR . 'A.php' => '<?php
|
||||
namespace Foo;
|
||||
|
||||
class A {
|
||||
/** @var string */
|
||||
public $foo;
|
||||
}',
|
||||
],
|
||||
],
|
||||
'error_message' => 'MissingConstructor'
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user