Skip to content

Commit cae9afb

Browse files
committed
Fix empty tags types
1 parent bf6db0a commit cae9afb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/Functional/LinterStubs/LinterStubsTestCase.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
use PHPUnit\Framework\Attributes\Group;
99
use PHPUnit\Framework\ExpectationFailedException;
1010
use Symfony\Component\Finder\Finder;
11+
use TypeLang\Parser\Node\Name;
12+
use TypeLang\Parser\Node\Stmt\CallableTypeNode;
1113
use TypeLang\Parser\Tests\Concern\InteractWithPHPDocParser;
1214
use TypeLang\Parser\Tests\Concern\InteractWithPHPDocTagsParser;
1315
use TypeLang\Parser\Tests\Functional\TestCase;
@@ -199,6 +201,12 @@ public function testPropertyStatementsIsCorrectlyRecognized(TagInterface $tag):
199201

200202
public static function methodTagDataProvider(): iterable
201203
{
204+
// PhpStan and Psalm stubs does not provide this tags
205+
yield '[sample]' => [new Standard\MethodTag(
206+
name: 'sample',
207+
type: new CallableTypeNode(new Name('sample'))
208+
)];
209+
202210
yield from self::getTagByName(['method']);
203211
}
204212

0 commit comments

Comments
 (0)