File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed 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