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

Fix Psalm errors

This commit is contained in:
Matthew Brown 2019-05-14 19:30:10 -04:00 committed by GitHub
parent f4c754737f
commit cfde83775d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1541,6 +1541,8 @@ class ClassAnalyzer extends ClassLikeAnalyzer
) {
foreach ($extended_type->getTypes() as $t) {
if ($t instanceof Type\Atomic\TTemplateParam
&& $storage->template_types
&& $storage->template_covariants
&& ($local_offset
= array_search($t->param_name, array_keys($storage->template_types)))
!== false