1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Add suppression and note

This commit is contained in:
Daniil Gentili 2023-10-19 13:04:53 +02:00
parent 3e6294e97b
commit fe4928cf8d

View File

@ -244,6 +244,7 @@ final class FunctionLikeNodeScanner
if ($stmt instanceof PhpParser\Node\Stmt\Function_
|| $stmt instanceof PhpParser\Node\Stmt\ClassMethod
) {
/** @psalm-suppress RedundantCondition See https://github.com/vimeo/psalm/issues/10296 */
if ($stmt instanceof PhpParser\Node\Stmt\ClassMethod
&& $storage instanceof MethodStorage
&& $classlike_storage