Skip to content
Permalink
Browse files

Add extra isset test

  • Loading branch information...
muglug committed Jun 25, 2019
1 parent 16bf5f1 commit 904267638f59c798cfd2d1a75987681b12bd7276
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Psalm/Type/Atomic/HasIntersectionTrait.php
@@ -78,7 +78,9 @@ public function replaceIntersectionTemplateTypesWithArgTypes(array $template_typ
$new_types = [];
foreach ($this->extra_types as $extra_type) {
if ($extra_type instanceof TTemplateParam && isset($template_types[$extra_type->param_name])) {
if ($extra_type instanceof TTemplateParam
&& isset($template_types[$extra_type->param_name][$extra_type->defining_class ?: ''])
) {
$template_type = clone $template_types[$extra_type->param_name][$extra_type->defining_class ?: ''][0];
foreach ($template_type->getTypes() as $template_type_part) {

0 comments on commit 9042676

Please sign in to comment.
You can’t perform that action at this time.