@@ -2801,11 +2801,9 @@ public function provideSingleLinePhpDocData(): Iterator
28012801 new PhpDocNode ([
28022802 new PhpDocTagNode (
28032803 '@example ' ,
2804- new GenericTagValueNode ('' ),
2805- ),
2806- new PhpDocTextNode (
2807- 'entity_managers: ' . PHP_EOL .
2808- ' default: ' ,
2804+ new GenericTagValueNode (PHP_EOL .
2805+ ' entity_managers: ' . PHP_EOL .
2806+ ' default: ' ),
28092807 ),
28102808 ]),
28112809 ];
@@ -2955,26 +2953,27 @@ public function provideMultiLinePhpDocData(): iterable
29552953 new IdentifierTypeNode ('Foo ' ),
29562954 false ,
29572955 '$foo ' ,
2958- '1st multi world description with empty lines ' ,
2956+ '1st multi world description with empty lines ' . PHP_EOL .
2957+ PHP_EOL .
2958+ PHP_EOL .
2959+ 'some text in the middle ' ,
29592960 ),
29602961 ),
29612962 new PhpDocTextNode ('' ),
29622963 new PhpDocTextNode ('' ),
2963- new PhpDocTextNode ('some text in the middle ' ),
2964- new PhpDocTextNode ('' ),
2965- new PhpDocTextNode ('' ),
29662964 new PhpDocTagNode (
29672965 '@param ' ,
29682966 new ParamTagValueNode (
29692967 new IdentifierTypeNode ('Bar ' ),
29702968 false ,
29712969 '$bar ' ,
2972- '2nd multi world description with empty lines ' ,
2970+ '2nd multi world description with empty lines ' . PHP_EOL .
2971+ PHP_EOL .
2972+ PHP_EOL .
2973+ 'test ' ,
29732974 ),
29742975 ),
2975- new PhpDocTextNode ('' ),
2976- new PhpDocTextNode ('' ),
2977- new PhpDocTextNode ('test ' ),
2976+
29782977 ]),
29792978 ],
29802979 [
@@ -3803,10 +3802,18 @@ public function provideMultiLinePhpDocData(): iterable
38033802 ' */ ' ,
38043803 new PhpDocNode ([
38053804 new PhpDocTextNode ('Real description ' ),
3806- new PhpDocTagNode ('@param ' , new ParamTagValueNode (new IdentifierTypeNode ('int ' ), false , '$a ' , '' )),
3807- new PhpDocTextNode ('' ),
3808- new PhpDocTextNode ('' ),
3809- new PhpDocTextNode ('test ' ),
3805+ new PhpDocTagNode (
3806+ '@param ' ,
3807+ new ParamTagValueNode (
3808+ new IdentifierTypeNode ('int ' ),
3809+ false ,
3810+ '$a ' ,
3811+ PHP_EOL
3812+ . PHP_EOL
3813+ . PHP_EOL
3814+ . 'test ' ,
3815+ ),
3816+ ),
38103817 ]),
38113818 ];
38123819 }
@@ -4941,19 +4948,15 @@ public function provideRealWorldExampleData(): Iterator
49414948 new IdentifierTypeNode ('\Drupal\Core\Field\FieldStorageDefinitionInterface ' ),
49424949 false ,
49434950 '$field_definition ' ,
4944- ' ' ,
4951+ PHP_EOL . ' The field definition. ' ,
49454952 ),
49464953 ),
4947- new PhpDocTextNode ('The field definition. ' ),
49484954 new PhpDocTextNode ('' ),
49494955 new PhpDocTagNode (
49504956 '@return ' ,
49514957 new ReturnTagValueNode (
49524958 new IdentifierTypeNode ('array ' ),
4953- '' ,
4954- ),
4955- ),
4956- new PhpDocTextNode ("An empty array if there is no schema, or an associative array with the
4959+ PHP_EOL . " An empty array if there is no schema, or an associative array with the
49574960 following key/value pairs:
49584961 - columns: An array of Schema API column specifications, keyed by column
49594962 name. The columns need to be a subset of the properties defined in
@@ -4975,7 +4978,9 @@ public function provideRealWorldExampleData(): Iterator
49754978 definitions. Note, however, that the field data is not necessarily
49764979 stored in SQL. Also, the possible usage is limited, as you cannot
49774980 specify another field as related, only existing SQL tables,
4978- such as {taxonomy_term_data}. " ),
4981+ such as {taxonomy_term_data}. " ,
4982+ ),
4983+ ),
49794984 ]),
49804985 ];
49814986
@@ -5693,9 +5698,8 @@ public function provideCommentLikeDescriptions(): Iterator
56935698 new IdentifierTypeNode ('int ' ),
56945699 false ,
56955700 '$a ' ,
5696- ' ' ,
5701+ PHP_EOL . ' // this is a comment ' ,
56975702 )),
5698- new PhpDocTextNode ('// this is a comment ' ),
56995703 ]),
57005704 ];
57015705 yield [
@@ -5710,10 +5714,8 @@ public function provideCommentLikeDescriptions(): Iterator
57105714 new IdentifierTypeNode ('int ' ),
57115715 false ,
57125716 '$a ' ,
5713- ' ' ,
5717+ PHP_EOL . PHP_EOL . ' // this is a comment ' ,
57145718 )),
5715- new PhpDocTextNode ('' ),
5716- new PhpDocTextNode ('// this is a comment ' ),
57175719 ]),
57185720 ];
57195721 yield [
@@ -5918,10 +5920,10 @@ public function provideDoctrineData(): Iterator
59185920 '@X ' ,
59195921 new DoctrineTagValueNode (
59205922 new DoctrineAnnotation ('@X ' , []),
5921- '' ,
5923+ PHP_EOL .
5924+ 'Content ' ,
59225925 ),
59235926 ),
5924- new PhpDocTextNode ('Content ' ),
59255927 ]),
59265928 [new Doctrine \X ()],
59275929 ];
@@ -6075,9 +6077,8 @@ public function provideDoctrineData(): Iterator
60756077 new PhpDocTagNode ('@X ' , new DoctrineTagValueNode (new DoctrineAnnotation (
60766078 '@X ' ,
60776079 [],
6078- ), 'test ' )),
6079- new PhpDocTextNode ('' ),
6080- new PhpDocTextNode ('test2 ' ),
6080+ ), 'test ' . PHP_EOL .
6081+ PHP_EOL . 'test2 ' )),
60816082 ]),
60826083 [new Doctrine \X ()],
60836084 ];
@@ -6093,9 +6094,8 @@ public function provideDoctrineData(): Iterator
60936094 new PhpDocTagNode ('@X ' , new DoctrineTagValueNode (new DoctrineAnnotation (
60946095 '@X ' ,
60956096 [],
6096- ), 'test ' )),
6097- new PhpDocTextNode ('' ),
6098- new PhpDocTextNode ('test2 ' ),
6097+ ), 'test ' . PHP_EOL .
6098+ PHP_EOL . 'test2 ' )),
60996099 new PhpDocTagNode ('@Z ' , new DoctrineTagValueNode (new DoctrineAnnotation (
61006100 '@Z ' ,
61016101 [],
@@ -6134,9 +6134,9 @@ public function provideDoctrineData(): Iterator
61346134 ' * test2 ' . PHP_EOL .
61356135 ' */ ' ,
61366136 new PhpDocNode ([
6137- new PhpDocTagNode ('@X ' , new GenericTagValueNode ('test ' )),
6138- new PhpDocTextNode ( '' ),
6139- new PhpDocTextNode ( 'test2 ' ),
6137+ new PhpDocTagNode ('@X ' , new GenericTagValueNode ('test ' . PHP_EOL .
6138+ PHP_EOL .
6139+ 'test2 ' ) ),
61406140 ]),
61416141 [new Doctrine \X ()],
61426142 ];
@@ -6149,9 +6149,9 @@ public function provideDoctrineData(): Iterator
61496149 ' * @Z ' . PHP_EOL .
61506150 ' */ ' ,
61516151 new PhpDocNode ([
6152- new PhpDocTagNode ('@X ' , new GenericTagValueNode ('test ' )),
6153- new PhpDocTextNode ( '' ),
6154- new PhpDocTextNode ( 'test2 ' ),
6152+ new PhpDocTagNode ('@X ' , new GenericTagValueNode ('test ' . PHP_EOL .
6153+ PHP_EOL .
6154+ 'test2 ' ) ),
61556155 new PhpDocTagNode ('@Z ' , new GenericTagValueNode ('' )),
61566156 ]),
61576157 [new Doctrine \X (), new Doctrine \Z ()],
@@ -7309,7 +7309,7 @@ public function dataTextBetweenTagsBelongsToDescription(): iterable
73097309 new DeprecatedTagValueNode ('in Drupal 8.6.0 and will be removed before Drupal 9.0.0. In
73107310 Drupal 9 there will be no way to set the status and in Drupal 8 this
73117311 ability has been removed because mb_*() functions are supplied using
7312- Symfony \'s polyfill. ' )
7312+ Symfony \'s polyfill. ' ),
73137313 ),
73147314 ]),
73157315 ];
@@ -7327,8 +7327,8 @@ public function dataTextBetweenTagsBelongsToDescription(): iterable
73277327 'in Drupal 8.6.0 and will be removed before Drupal 9.0.0. In
73287328 Drupal 9 there will be no way to set the status and in Drupal 8 this
73297329 ability has been removed because mb_*() functions are supplied using
7330- Symfony \'s polyfill. '
7331- )
7330+ Symfony \'s polyfill. ',
7331+ ),
73327332 ),
73337333 ]),
73347334 ];
@@ -7344,7 +7344,7 @@ public function testTextBetweenTagsBelongsToDescription(
73447344 {
73457345 $ constExprParser = new ConstExprParser ();
73467346 $ typeParser = new TypeParser ($ constExprParser );
7347- $ phpDocParser = new PhpDocParser ($ typeParser , $ constExprParser , [], true );
7347+ $ phpDocParser = new PhpDocParser ($ typeParser , $ constExprParser , []);
73487348
73497349 $ tokens = new TokenIterator ($ this ->lexer ->tokenize ($ input ));
73507350 $ actualPhpDocNode = $ phpDocParser ->parse ($ tokens );
0 commit comments