Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 769ba88

Browse files
Merge remote-tracking branch 'origin/1.23.x' into 2.0.x
2 parents 0fe292d + a5e938b commit 769ba88

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

‎tests/PHPStan/Parser/PhpDocParserTest.php‎

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3953,6 +3953,46 @@ public function provideMultiLinePhpDocData(): iterable
39533953
),
39543954
]),
39553955
];
3956+
3957+
yield [
3958+
'Real-world test case multiline PHPDoc',
3959+
'/**' . PHP_EOL .
3960+
' *' . PHP_EOL .
3961+
' * MultiLine' . PHP_EOL .
3962+
' * description' . PHP_EOL .
3963+
' * @param bool $a' . PHP_EOL .
3964+
' *' . PHP_EOL .
3965+
' * @return void' . PHP_EOL .
3966+
' *' . PHP_EOL .
3967+
' * @throws \Exception' . PHP_EOL .
3968+
' *' . PHP_EOL .
3969+
' */',
3970+
new PhpDocNode([
3971+
new PhpDocTextNode(''),
3972+
new PhpDocTextNode(
3973+
'MultiLine' . PHP_EOL .
3974+
'description',
3975+
),
3976+
new PhpDocTagNode('@param', new ParamTagValueNode(
3977+
new IdentifierTypeNode('bool'),
3978+
false,
3979+
'$a',
3980+
'',
3981+
false,
3982+
)),
3983+
new PhpDocTextNode(''),
3984+
new PhpDocTagNode('@return', new ReturnTagValueNode(
3985+
new IdentifierTypeNode('void'),
3986+
'',
3987+
)),
3988+
new PhpDocTextNode(''),
3989+
new PhpDocTagNode('@throws', new ThrowsTagValueNode(
3990+
new IdentifierTypeNode('\Exception'),
3991+
'',
3992+
)),
3993+
new PhpDocTextNode(''),
3994+
]),
3995+
];
39563996
}
39573997

39583998
public function provideTemplateTagsData(): Iterator
@@ -7509,6 +7549,45 @@ public function dataTextBetweenTagsBelongsToDescription(): iterable
75097549
),
75107550
]),
75117551
];
7552+
7553+
yield [
7554+
'/**' . PHP_EOL .
7555+
' *' . PHP_EOL .
7556+
' * MultiLine' . PHP_EOL .
7557+
' * description' . PHP_EOL .
7558+
' * @param bool $a' . PHP_EOL .
7559+
' *' . PHP_EOL .
7560+
' * @return void' . PHP_EOL .
7561+
' *' . PHP_EOL .
7562+
' * @throws \Exception' . PHP_EOL .
7563+
' *' . PHP_EOL .
7564+
' */',
7565+
new PhpDocNode([
7566+
new PhpDocTextNode(''),
7567+
new PhpDocTextNode(
7568+
'MultiLine' . PHP_EOL .
7569+
'description',
7570+
),
7571+
new PhpDocTagNode('@param', new ParamTagValueNode(
7572+
new IdentifierTypeNode('bool'),
7573+
false,
7574+
'$a',
7575+
'',
7576+
false,
7577+
)),
7578+
new PhpDocTextNode(''),
7579+
new PhpDocTagNode('@return', new ReturnTagValueNode(
7580+
new IdentifierTypeNode('void'),
7581+
'',
7582+
)),
7583+
new PhpDocTextNode(''),
7584+
new PhpDocTagNode('@throws', new ThrowsTagValueNode(
7585+
new IdentifierTypeNode('\Exception'),
7586+
'',
7587+
)),
7588+
new PhpDocTextNode(''),
7589+
]),
7590+
];
75127591
}
75137592

75147593
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /