mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Fix #1050 - don’t check stubbed classes for property initialisation
This commit is contained in:
parent
2413e745e2
commit
b1c704da4d
@ -572,6 +572,7 @@ class ClassChecker extends ClassLikeChecker
|
||||
|
||||
// ignore oldstyle constructors and classes without any declared properties
|
||||
if ($constructor_class_storage->user_defined
|
||||
&& !$constructor_class_storage->stubbed
|
||||
&& isset($constructor_class_storage->methods['__construct'])
|
||||
) {
|
||||
$constructor_storage = $constructor_class_storage->methods['__construct'];
|
||||
|
Loading…
Reference in New Issue
Block a user