1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Fix #3174 - always scan @mixin classes

This commit is contained in:
Brown 2020-04-18 11:57:25 -04:00
parent 8ba642f408
commit 61f5a06a7b

View File

@ -1266,11 +1266,16 @@ class ReflectorVisitor extends PhpParser\NodeVisitorAbstract implements PhpParse
$name_location ?: $class_location $name_location ?: $class_location
); );
} else { } else {
$storage->mixin_fqcln = Type::getFQCLNFromString( $mixin_fqcln = Type::getFQCLNFromString(
$docblock_info->mixin, $docblock_info->mixin,
$this->aliases $this->aliases
); );
$storage->mixin_fqcln = $mixin_fqcln;
$this->codebase->scanner->queueClassLikeForScanning($mixin_fqcln);
$this->file_storage->referenced_classlikes[strtolower($mixin_fqcln)] = $mixin_fqcln;
// if there's a mixin, assume it's the reason for the __call // if there's a mixin, assume it's the reason for the __call
$storage->sealed_properties = true; $storage->sealed_properties = true;
$storage->sealed_methods = true; $storage->sealed_methods = true;