Skip to content

Commit 8dd908d

Browse files
kubawerlosondrejmirtes
authored andcommitted
Add test with parenthesis
1 parent f069ed8 commit 8dd908d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Diff for: tests/PHPStan/Parser/PhpDocParserTest.php

+12-1
Original file line numberDiff line numberDiff line change
@@ -4463,7 +4463,7 @@ public function provideTagsWithNumbers(): Iterator
44634463
public function provideTagsWithBackslash(): Iterator
44644464
{
44654465
yield [
4466-
'OK without description and tag with backslash in it',
4466+
'OK without description and tag with backslashes in it',
44674467
'/** @ORM\Mapping\Entity User */',
44684468
new PhpDocNode([
44694469
new PhpDocTagNode(
@@ -4472,6 +4472,17 @@ public function provideTagsWithBackslash(): Iterator
44724472
),
44734473
]),
44744474
];
4475+
4476+
yield [
4477+
'OK without description and tag with backslashes in it and parenthesis',
4478+
'/** @ORM\Mapping\JoinColumn(name="column_id", referencedColumnName="id") */',
4479+
new PhpDocNode([
4480+
new PhpDocTagNode(
4481+
'@ORM\Mapping\JoinColumn',
4482+
new GenericTagValueNode('(name="column_id", referencedColumnName="id")')
4483+
),
4484+
]),
4485+
];
44754486
}
44764487

44774488
/**

0 commit comments

Comments
 (0)