File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
tests/Functional/LinterStubs Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 88use PHPUnit \Framework \Attributes \Group ;
99use PHPUnit \Framework \ExpectationFailedException ;
1010use Symfony \Component \Finder \Finder ;
11+ use TypeLang \Parser \Node \Name ;
12+ use TypeLang \Parser \Node \Stmt \CallableTypeNode ;
1113use TypeLang \Parser \Tests \Concern \InteractWithPHPDocParser ;
1214use TypeLang \Parser \Tests \Concern \InteractWithPHPDocTagsParser ;
1315use 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
You can’t perform that action at this time.
0 commit comments