mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +01:00
Add suppression and note
This commit is contained in:
parent
3e6294e97b
commit
fe4928cf8d
@ -244,6 +244,7 @@ final class FunctionLikeNodeScanner
|
|||||||
if ($stmt instanceof PhpParser\Node\Stmt\Function_
|
if ($stmt instanceof PhpParser\Node\Stmt\Function_
|
||||||
|| $stmt instanceof PhpParser\Node\Stmt\ClassMethod
|
|| $stmt instanceof PhpParser\Node\Stmt\ClassMethod
|
||||||
) {
|
) {
|
||||||
|
/** @psalm-suppress RedundantCondition See https://github.com/vimeo/psalm/issues/10296 */
|
||||||
if ($stmt instanceof PhpParser\Node\Stmt\ClassMethod
|
if ($stmt instanceof PhpParser\Node\Stmt\ClassMethod
|
||||||
&& $storage instanceof MethodStorage
|
&& $storage instanceof MethodStorage
|
||||||
&& $classlike_storage
|
&& $classlike_storage
|
||||||
|
Loading…
Reference in New Issue
Block a user