Skip to content

Commit c17dbe7

Browse files
committed
Add PhpParserStmt
1 parent 74fc363 commit c17dbe7

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

build/phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ parameters:
125125
- stubs/NetteDIContainer.stub
126126
- stubs/PhpParserName.stub
127127
- stubs/PhpParserExpr.stub
128+
- stubs/PhpParserStmt.stub
128129
- stubs/Identifier.stub
129130

130131
rules:

build/stubs/PhpParserStmt.stub

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace PhpParser\Node\Stmt;
4+
5+
use PhpParser\Modifiers;
6+
use PhpParser\Node;
7+
use PhpParser\Node\FunctionLike;
8+
9+
class ClassMethod extends Node\Stmt implements FunctionLike {
10+
/** @var list<Node\Stmt>|null Statements */
11+
public ?array $stmts;
12+
}
13+
14+
class If_ extends Node\Stmt {
15+
/** @var list<Node\Stmt> Statements */
16+
public array $stmts;
17+
}

0 commit comments

Comments
 (0)