We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51924c9 commit ae4feaeCopy full SHA for ae4feae
src/Psalm/Internal/Analyzer/FunctionLike/ReturnTypeAnalyzer.php
@@ -156,10 +156,10 @@ public static function verifyReturnType(
156
}
157
158
159
- /** @psalm-suppress PossiblyUndefinedStringArrayOffset */
160
if ($return_type
161
&& (!$return_type->from_docblock
162
|| ($return_type->isNullable()
+ && !$return_type->hasTemplate()
163
&& !$return_type->getAtomicTypes()['null']->from_docblock
164
)
165
0 commit comments