File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,6 @@ parameters:
10
10
count : 1
11
11
path : src/Ast/NodeTraverser.php
12
12
13
- -
14
- message : " #^Strict comparison using \\ =\\ =\\ = between 2 and 2 will always evaluate to true\\ .$#"
15
- count : 2
16
- path : src/Ast/NodeTraverser.php
17
-
18
13
-
19
14
message : " #^Variable property access on PHPStan\\\\ PhpDocParser\\\\ Ast\\\\ Node\\ .$#"
20
15
count : 1
Original file line number Diff line number Diff line change 8
8
use PHPStan \PhpDocParser \Ast \Node ;
9
9
use PHPStan \PhpDocParser \Ast \NodeTraverser ;
10
10
use PHPStan \PhpDocParser \Ast \PhpDoc \PhpDocNode ;
11
- use PHPStan \PhpDocParser \Ast \Type \TypeNode ;
12
11
use PHPStan \PhpDocParser \Parser \ConstExprParser ;
13
12
use PHPStan \PhpDocParser \Parser \PhpDocParser ;
14
13
use PHPStan \PhpDocParser \Parser \TypeParser ;
@@ -34,11 +33,11 @@ abstract class PrinterTestBase extends TestCase
34
33
protected $ phpDocParser ;
35
34
36
35
/**
37
- * @template TNode of TypeNode
36
+ * @template TNode $node of TypeNode
38
37
* @param TNode $node
39
38
* @return TNode
40
39
*/
41
- public static function withComment (TypeNode $ node , string $ comment ): TypeNode
40
+ public static function withComment (mixed $ node , string $ comment ): mixed
42
41
{
43
42
$ node ->setAttribute (Attribute::COMMENTS , [new Comment ($ comment )]);
44
43
return $ node ;
You can’t perform that action at this time.
0 commit comments