mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Fix template check
This commit is contained in:
parent
79f4e9c354
commit
1df3c9365c
@ -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…
x
Reference in New Issue
Block a user