@@ -2801,11 +2801,9 @@ public function provideSingleLinePhpDocData(): Iterator
2801
2801
new PhpDocNode ([
2802
2802
new PhpDocTagNode (
2803
2803
'@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: ' ),
2809
2807
),
2810
2808
]),
2811
2809
];
@@ -2955,26 +2953,27 @@ public function provideMultiLinePhpDocData(): iterable
2955
2953
new IdentifierTypeNode ('Foo ' ),
2956
2954
false ,
2957
2955
'$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 ' ,
2959
2960
),
2960
2961
),
2961
2962
new PhpDocTextNode ('' ),
2962
2963
new PhpDocTextNode ('' ),
2963
- new PhpDocTextNode ('some text in the middle ' ),
2964
- new PhpDocTextNode ('' ),
2965
- new PhpDocTextNode ('' ),
2966
2964
new PhpDocTagNode (
2967
2965
'@param ' ,
2968
2966
new ParamTagValueNode (
2969
2967
new IdentifierTypeNode ('Bar ' ),
2970
2968
false ,
2971
2969
'$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 ' ,
2973
2974
),
2974
2975
),
2975
- new PhpDocTextNode ('' ),
2976
- new PhpDocTextNode ('' ),
2977
- new PhpDocTextNode ('test ' ),
2976
+
2978
2977
]),
2979
2978
],
2980
2979
[
@@ -3803,10 +3802,18 @@ public function provideMultiLinePhpDocData(): iterable
3803
3802
' */ ' ,
3804
3803
new PhpDocNode ([
3805
3804
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
+ ),
3810
3817
]),
3811
3818
];
3812
3819
}
@@ -4941,19 +4948,15 @@ public function provideRealWorldExampleData(): Iterator
4941
4948
new IdentifierTypeNode ('\Drupal\Core\Field\FieldStorageDefinitionInterface ' ),
4942
4949
false ,
4943
4950
'$field_definition ' ,
4944
- ' ' ,
4951
+ PHP_EOL . ' The field definition. ' ,
4945
4952
),
4946
4953
),
4947
- new PhpDocTextNode ('The field definition. ' ),
4948
4954
new PhpDocTextNode ('' ),
4949
4955
new PhpDocTagNode (
4950
4956
'@return ' ,
4951
4957
new ReturnTagValueNode (
4952
4958
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
4957
4960
following key/value pairs:
4958
4961
- columns: An array of Schema API column specifications, keyed by column
4959
4962
name. The columns need to be a subset of the properties defined in
@@ -4975,7 +4978,9 @@ public function provideRealWorldExampleData(): Iterator
4975
4978
definitions. Note, however, that the field data is not necessarily
4976
4979
stored in SQL. Also, the possible usage is limited, as you cannot
4977
4980
specify another field as related, only existing SQL tables,
4978
- such as {taxonomy_term_data}. " ),
4981
+ such as {taxonomy_term_data}. " ,
4982
+ ),
4983
+ ),
4979
4984
]),
4980
4985
];
4981
4986
@@ -5693,9 +5698,8 @@ public function provideCommentLikeDescriptions(): Iterator
5693
5698
new IdentifierTypeNode ('int ' ),
5694
5699
false ,
5695
5700
'$a ' ,
5696
- ' ' ,
5701
+ PHP_EOL . ' // this is a comment ' ,
5697
5702
)),
5698
- new PhpDocTextNode ('// this is a comment ' ),
5699
5703
]),
5700
5704
];
5701
5705
yield [
@@ -5710,10 +5714,8 @@ public function provideCommentLikeDescriptions(): Iterator
5710
5714
new IdentifierTypeNode ('int ' ),
5711
5715
false ,
5712
5716
'$a ' ,
5713
- ' ' ,
5717
+ PHP_EOL . PHP_EOL . ' // this is a comment ' ,
5714
5718
)),
5715
- new PhpDocTextNode ('' ),
5716
- new PhpDocTextNode ('// this is a comment ' ),
5717
5719
]),
5718
5720
];
5719
5721
yield [
@@ -5918,10 +5920,10 @@ public function provideDoctrineData(): Iterator
5918
5920
'@X ' ,
5919
5921
new DoctrineTagValueNode (
5920
5922
new DoctrineAnnotation ('@X ' , []),
5921
- '' ,
5923
+ PHP_EOL .
5924
+ 'Content ' ,
5922
5925
),
5923
5926
),
5924
- new PhpDocTextNode ('Content ' ),
5925
5927
]),
5926
5928
[new Doctrine \X ()],
5927
5929
];
@@ -6075,9 +6077,8 @@ public function provideDoctrineData(): Iterator
6075
6077
new PhpDocTagNode ('@X ' , new DoctrineTagValueNode (new DoctrineAnnotation (
6076
6078
'@X ' ,
6077
6079
[],
6078
- ), 'test ' )),
6079
- new PhpDocTextNode ('' ),
6080
- new PhpDocTextNode ('test2 ' ),
6080
+ ), 'test ' . PHP_EOL .
6081
+ PHP_EOL . 'test2 ' )),
6081
6082
]),
6082
6083
[new Doctrine \X ()],
6083
6084
];
@@ -6093,9 +6094,8 @@ public function provideDoctrineData(): Iterator
6093
6094
new PhpDocTagNode ('@X ' , new DoctrineTagValueNode (new DoctrineAnnotation (
6094
6095
'@X ' ,
6095
6096
[],
6096
- ), 'test ' )),
6097
- new PhpDocTextNode ('' ),
6098
- new PhpDocTextNode ('test2 ' ),
6097
+ ), 'test ' . PHP_EOL .
6098
+ PHP_EOL . 'test2 ' )),
6099
6099
new PhpDocTagNode ('@Z ' , new DoctrineTagValueNode (new DoctrineAnnotation (
6100
6100
'@Z ' ,
6101
6101
[],
@@ -6134,9 +6134,9 @@ public function provideDoctrineData(): Iterator
6134
6134
' * test2 ' . PHP_EOL .
6135
6135
' */ ' ,
6136
6136
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 ' ) ),
6140
6140
]),
6141
6141
[new Doctrine \X ()],
6142
6142
];
@@ -6149,9 +6149,9 @@ public function provideDoctrineData(): Iterator
6149
6149
' * @Z ' . PHP_EOL .
6150
6150
' */ ' ,
6151
6151
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 ' ) ),
6155
6155
new PhpDocTagNode ('@Z ' , new GenericTagValueNode ('' )),
6156
6156
]),
6157
6157
[new Doctrine \X (), new Doctrine \Z ()],
@@ -7309,7 +7309,7 @@ public function dataTextBetweenTagsBelongsToDescription(): iterable
7309
7309
new DeprecatedTagValueNode ('in Drupal 8.6.0 and will be removed before Drupal 9.0.0. In
7310
7310
Drupal 9 there will be no way to set the status and in Drupal 8 this
7311
7311
ability has been removed because mb_*() functions are supplied using
7312
- Symfony \'s polyfill. ' )
7312
+ Symfony \'s polyfill. ' ),
7313
7313
),
7314
7314
]),
7315
7315
];
@@ -7327,8 +7327,8 @@ public function dataTextBetweenTagsBelongsToDescription(): iterable
7327
7327
'in Drupal 8.6.0 and will be removed before Drupal 9.0.0. In
7328
7328
Drupal 9 there will be no way to set the status and in Drupal 8 this
7329
7329
ability has been removed because mb_*() functions are supplied using
7330
- Symfony \'s polyfill. '
7331
- )
7330
+ Symfony \'s polyfill. ',
7331
+ ),
7332
7332
),
7333
7333
]),
7334
7334
];
@@ -7344,7 +7344,7 @@ public function testTextBetweenTagsBelongsToDescription(
7344
7344
{
7345
7345
$ constExprParser = new ConstExprParser ();
7346
7346
$ typeParser = new TypeParser ($ constExprParser );
7347
- $ phpDocParser = new PhpDocParser ($ typeParser , $ constExprParser , [], true );
7347
+ $ phpDocParser = new PhpDocParser ($ typeParser , $ constExprParser , []);
7348
7348
7349
7349
$ tokens = new TokenIterator ($ this ->lexer ->tokenize ($ input ));
7350
7350
$ actualPhpDocNode = $ phpDocParser ->parse ($ tokens );
0 commit comments