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

Fix list scanning

This commit is contained in:
Matthew Brown 2020-01-27 09:07:22 -05:00
parent 5774cfed7d
commit dec274a1fe

View File

@ -541,6 +541,14 @@ abstract class Atomic
} }
} }
if ($this instanceof Type\Atomic\TList) {
$this->type_param->queueClassLikesForScanning(
$codebase,
$file_storage,
$phantom_classes
);
}
if ($this instanceof Type\Atomic\TFn if ($this instanceof Type\Atomic\TFn
|| $this instanceof Type\Atomic\TCallable || $this instanceof Type\Atomic\TCallable
) { ) {