Skip to content

Commit 5cd06e2

Browse files
committed
Check out how this text gets parsed
1 parent 846ae76 commit 5cd06e2

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

tests/PHPStan/Parser/PhpDocParserTest.php

+35
Original file line numberDiff line numberDiff line change
@@ -6448,6 +6448,24 @@ public function provideDoctrineWithoutDoctrineCheckData(): Iterator
64486448
)),
64496449
]),
64506450
];
6451+
6452+
yield [
6453+
'Slevomat CS issue #1608',
6454+
'/**' . PHP_EOL .
6455+
' * `"= "`' . PHP_EOL .
6456+
' * a' . PHP_EOL .
6457+
' * "' . PHP_EOL .
6458+
' *' . PHP_EOL .
6459+
' * @package foo' . PHP_EOL .
6460+
' */',
6461+
new PhpDocNode([
6462+
new PhpDocTextNode('`"= "`' . PHP_EOL .
6463+
' * a' . PHP_EOL .
6464+
' * "'),
6465+
new PhpDocTextNode(''),
6466+
new PhpDocTagNode('@package', new GenericTagValueNode('foo')),
6467+
]),
6468+
];
64516469
}
64526470

64536471
public function provideSpecializedTags(): Iterator
@@ -7079,6 +7097,23 @@ public function dataTextBetweenTagsBelongsToDescription(): iterable
70797097
new PhpDocTextNode(''),
70807098
]),
70817099
];
7100+
7101+
yield [
7102+
'/**' . PHP_EOL .
7103+
' * `"= "`' . PHP_EOL .
7104+
' * a' . PHP_EOL .
7105+
' * "' . PHP_EOL .
7106+
' *' . PHP_EOL .
7107+
' * @package foo' . PHP_EOL .
7108+
' */',
7109+
new PhpDocNode([
7110+
new PhpDocTextNode('`"= "`' . PHP_EOL .
7111+
' * a' . PHP_EOL .
7112+
' * "'),
7113+
new PhpDocTextNode(''),
7114+
new PhpDocTagNode('@package', new GenericTagValueNode('foo')),
7115+
]),
7116+
];
70827117
}
70837118

70847119
/**

0 commit comments

Comments
 (0)