1
0
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:
Matthew Brown 2018-10-06 21:11:54 -04:00
parent 92e11fd51b
commit 4e3be4be40

View File

@ -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'
],
];
}
}