Skip to content

Commit

Permalink
Fix template check
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Sep 14, 2020
1 parent 51924c9 commit ae4feae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ public static function verifyReturnType(
}
}

/** @psalm-suppress PossiblyUndefinedStringArrayOffset */
if ($return_type
&& (!$return_type->from_docblock
|| ($return_type->isNullable()
&& !$return_type->hasTemplate()
&& !$return_type->getAtomicTypes()['null']->from_docblock
)
)
Expand Down

0 comments on commit ae4feae

Please sign in to comment.