1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Fix #1050 - don’t check stubbed classes for property initialisation

This commit is contained in:
Matthew Brown 2018-11-01 22:46:14 -04:00
parent 2413e745e2
commit b1c704da4d

View File

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