From cfde83775db3ad68008ab795041c341048818463 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Tue, 14 May 2019 19:30:10 -0400 Subject: [PATCH] Fix Psalm errors --- src/Psalm/Internal/Analyzer/ClassAnalyzer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Psalm/Internal/Analyzer/ClassAnalyzer.php b/src/Psalm/Internal/Analyzer/ClassAnalyzer.php index 60c34470e..71c49f777 100644 --- a/src/Psalm/Internal/Analyzer/ClassAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/ClassAnalyzer.php @@ -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