File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace PHPStan \Node ;
4
4
5
- class ClassMethod
5
+ use PhpParser \Node \Stmt \ClassMethod as PhpParserClassMethod ;
6
+
7
+ class ClassMethod extends PhpParserClassMethod
6
8
{
7
9
8
10
public function __construct (
9
- private \PhpParser \Node \Stmt \ClassMethod $ node ,
11
+ \PhpParser \Node \Stmt \ClassMethod $ node ,
10
12
private bool $ isDeclaredInTrait ,
11
13
)
12
14
{
15
+ parent ::__construct ($ node ->name , [
16
+ 'flags ' => $ node ->flags ,
17
+ 'byRef ' => $ node ->byRef ,
18
+ 'params ' => $ node ->params ,
19
+ 'returnType ' => $ node ->returnType ,
20
+ 'stmts ' => $ node ->stmts ,
21
+ 'attrGroups ' => $ node ->attrGroups ,
22
+ ], $ node ->attributes );
13
23
}
14
24
15
- public function getNode (): \ PhpParser \ Node \ Stmt \ ClassMethod
25
+ public function getNode (): PhpParserClassMethod
16
26
{
17
- return $ this -> node ;
27
+ return $ this ;
18
28
}
19
29
20
30
public function isDeclaredInTrait (): bool
You can’t perform that action at this time.
0 commit comments