Skip to content

Commit 655d968

Browse files
committed
fix template
1 parent 719be61 commit 655d968

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

phpstan-baseline.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ parameters:
1010
count: 1
1111
path: src/Ast/NodeTraverser.php
1212

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+
1318
-
1419
message: "#^Variable property access on PHPStan\\\\PhpDocParser\\\\Ast\\\\Node\\.$#"
1520
count: 1

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)