File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ 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
+
13
18
-
14
19
message : " #^Variable property access on PHPStan\\\\ PhpDocParser\\\\ Ast\\\\ Node\\ .$#"
15
20
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 ;
11
12
use PHPStan \PhpDocParser \Parser \ConstExprParser ;
12
13
use PHPStan \PhpDocParser \Parser \PhpDocParser ;
13
14
use PHPStan \PhpDocParser \Parser \TypeParser ;
@@ -33,11 +34,11 @@ abstract class PrinterTestBase extends TestCase
33
34
protected $ phpDocParser ;
34
35
35
36
/**
36
- * @template TNode $node of TypeNode
37
+ * @template TNode of TypeNode
37
38
* @param TNode $node
38
39
* @return TNode
39
40
*/
40
- public static function withComment (mixed $ node , string $ comment ): mixed
41
+ public static function withComment (TypeNode $ node , string $ comment ): TypeNode
41
42
{
42
43
$ node ->setAttribute (Attribute::COMMENTS , [new Comment ($ comment )]);
43
44
return $ node ;
You can’t perform that action at this time.
0 commit comments