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 8
8
use PHPUnit \Framework \Attributes \Group ;
9
9
use PHPUnit \Framework \ExpectationFailedException ;
10
10
use Symfony \Component \Finder \Finder ;
11
+ use TypeLang \Parser \Node \Name ;
12
+ use TypeLang \Parser \Node \Stmt \CallableTypeNode ;
11
13
use TypeLang \Parser \Tests \Concern \InteractWithPHPDocParser ;
12
14
use TypeLang \Parser \Tests \Concern \InteractWithPHPDocTagsParser ;
13
15
use TypeLang \Parser \Tests \Functional \TestCase ;
@@ -199,6 +201,12 @@ public function testPropertyStatementsIsCorrectlyRecognized(TagInterface $tag):
199
201
200
202
public static function methodTagDataProvider (): iterable
201
203
{
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
+
202
210
yield from self ::getTagByName (['method ' ]);
203
211
}
204
212
You can’t perform that action at this time.
0 commit comments