Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions tests/PHPStan/Parser/PhpDocParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ protected function setUp(): void


/**
* @dataProvider provideTagsWithNumbers
* @dataProvider provideParamTagsData
* @dataProvider provideVarTagsData
* @dataProvider provideReturnTagsData
Expand Down Expand Up @@ -3219,6 +3220,20 @@ public function dataParseTagValue(): array
];
}

public function provideTagsWithNumbers(): \Iterator
{
yield [
'OK without description and tag with number in it',
'/** @special3 Foo */',
new PhpDocNode([
new PhpDocTagNode(
'@special3',
new GenericTagValueNode('Foo')
),
]),
];
}

/**
* @dataProvider dataParseTagValue
* @param string $tag
Expand Down