Skip to content

Commit ba21150

Browse files
committed
fixup! avoid type casting against stmts aware interface, as no node has it
1 parent 4110fdd commit ba21150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ parameters:
384384
-
385385
path: src/PhpParser/NodeTraverser/RectorNodeTraverser.php
386386
identifier: symplify.forbiddenFuncCall
387-
- '#Parameter 1 should use "Rector\\Contract\\PhpParser\\Node\\StmtsAwareInterface" type as the only type passed to this method#'
387+
- '#Parameter \d should use "Rector\\Contract\\PhpParser\\Node\\StmtsAwareInterface" type as the only type passed to this method#'
388388
- '#Parameter \#1 \$stmtsAware of method (.*?) expects Rector\\Contract\\PhpParser\\Node\\StmtsAwareInterface#'
389389

390390
- '#Method (.*?) should return Rector\\Contract\\PhpParser\\Node\\StmtsAwareInterface\|null but returns (.*?)\|null#'

0 commit comments

Comments
 (0)