Skip to content

Commit e5bf7b5

Browse files
committed
restore baseline
1 parent c438b2f commit e5bf7b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/PHPStan/Printer/PrinterTestBase.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use PHPStan\PhpDocParser\Ast\Node;
99
use PHPStan\PhpDocParser\Ast\NodeTraverser;
1010
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode;
11+
use PHPStan\PhpDocParser\Ast\Type\TypeNode;
1112
use PHPStan\PhpDocParser\Parser\ConstExprParser;
1213
use PHPStan\PhpDocParser\Parser\PhpDocParser;
1314
use PHPStan\PhpDocParser\Parser\TypeParser;
@@ -33,11 +34,11 @@ abstract class PrinterTestBase extends TestCase
3334
protected $phpDocParser;
3435

3536
/**
36-
* @template TNode $node of TypeNode
37+
* @template TNode of TypeNode
3738
* @param TNode $node
3839
* @return TNode
3940
*/
40-
public static function withComment(mixed $node, string $comment): mixed
41+
public static function withComment(TypeNode $node, string $comment): TypeNode
4142
{
4243
$node->setAttribute(Attribute::COMMENTS, [new Comment($comment)]);
4344
return $node;

0 commit comments

Comments
 (0)