From fe4928cf8dc32c1d70f80d588e38e5204e985abd Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 19 Oct 2023 13:04:53 +0200 Subject: [PATCH] Add suppression and note --- .../Internal/PhpVisitor/Reflector/FunctionLikeNodeScanner.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeNodeScanner.php b/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeNodeScanner.php index 6c85b646c..24aabab4c 100644 --- a/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeNodeScanner.php +++ b/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeNodeScanner.php @@ -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