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:
parent
5e6b158dd9
commit
386f3da446
@ -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
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user