Skip to content

Commit c438b2f

Browse files
committed
Revert "fix template"
This reverts commit 655d968.
1 parent 655d968 commit c438b2f

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ 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-
1813
-
1914
message: "#^Variable property access on PHPStan\\\\PhpDocParser\\\\Ast\\\\Node\\.$#"
2015
count: 1

tests/PHPStan/Printer/PrinterTestBase.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
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;
1211
use PHPStan\PhpDocParser\Parser\ConstExprParser;
1312
use PHPStan\PhpDocParser\Parser\PhpDocParser;
1413
use PHPStan\PhpDocParser\Parser\TypeParser;
@@ -34,11 +33,11 @@ abstract class PrinterTestBase extends TestCase
3433
protected $phpDocParser;
3534

3635
/**
37-
* @template TNode of TypeNode
36+
* @template TNode $node of TypeNode
3837
* @param TNode $node
3938
* @return TNode
4039
*/
41-
public static function withComment(TypeNode $node, string $comment): TypeNode
40+
public static function withComment(mixed $node, string $comment): mixed
4241
{
4342
$node->setAttribute(Attribute::COMMENTS, [new Comment($comment)]);
4443
return $node;

0 commit comments

Comments
 (0)