1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Fix template check

This commit is contained in:
Brown 2020-09-14 09:59:57 -04:00 committed by Daniil Gentili
parent 5e6b158dd9
commit 386f3da446
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -156,10 +156,10 @@ class ReturnTypeAnalyzer
}
}
/** @psalm-suppress PossiblyUndefinedStringArrayOffset */
if ($return_type
&& (!$return_type->from_docblock
|| ($return_type->isNullable()
&& !$return_type->hasTemplate()
&& !$return_type->getAtomicTypes()['null']->from_docblock
)
)