File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ public static function getParseTests(): array
301301 ],
302302 ],
303303 ],
304- [
304+ ' Test that @throws with a dot at the end works ' => [
305305 '
306306 /**
307307 * @throws \InvalidArgumentException.
@@ -314,8 +314,14 @@ public static function getParseTests(): array
314314 'longDesc ' => '' ,
315315 'tags ' => [
316316 'throws ' => [
317- '\InvalidArgumentException. ' ,
318- '\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException. ' ,
317+ [
318+ '\InvalidArgumentException ' ,
319+ '' ,
320+ ],
321+ [
322+ '\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException ' ,
323+ '' ,
324+ ],
319325 ],
320326 ],
321327 ],
@@ -597,7 +603,7 @@ public static function getParseTests(): array
597603 ],
598604 ]],
599605 ],
600- [
606+ ' Test that invalid @return format also works ' => [
601607 '/**
602608 * Prepares queries for adding users and
603609 * also create database and return query and message
@@ -633,8 +639,12 @@ public static function getParseTests(): array
633639 'SQL query for add a user ' ,
634640 ],
635641 ],
636- 'return ' => [
637- 'array, $message ' ,
642+
643+ 'return ' => [ // Array from found tags.
644+ [ // First found tag.
645+ [['array ' , false ]], // Array from data types.
646+ ', $message ' , // The description
647+ ],
638648 ],
639649 ],
640650 ]],
Original file line number Diff line number Diff line change @@ -556,7 +556,6 @@ public function testAddTagFromCommentToMethodInvalidHint(): void
556556 );
557557 $ this ->assertSame (
558558 [
559- 'The hint on "prop1" at @var is invalid: "\Illuminate\Support\Carbon;" ' ,
560559 ],
561560 $ errors
562561 );
You can’t perform that action at this time.
0 commit comments