Skip to content

Commit ae4feae

Browse files
committed
Fix template check
1 parent 51924c9 commit ae4feae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Psalm/Internal/Analyzer/FunctionLike/ReturnTypeAnalyzer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ public static function verifyReturnType(
156156
}
157157
}
158158

159-
/** @psalm-suppress PossiblyUndefinedStringArrayOffset */
160159
if ($return_type
161160
&& (!$return_type->from_docblock
162161
|| ($return_type->isNullable()
162+
&& !$return_type->hasTemplate()
163163
&& !$return_type->getAtomicTypes()['null']->from_docblock
164164
)
165165
)

0 commit comments

Comments
 (0)