Skip to content

Commit 05bce1f

Browse files
keradusnicolas-grekas
authored andcommitted
chore: PHP CS Fixer - update heredoc handling
1 parent deba1bb commit 05bce1f

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

Tests/Read/LexerTest.php

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ public static function jsonDataProvider(): iterable
101101
["a",
102102
4
103103
,1,
104-
JSON, false];
104+
JSON,
105+
false,
106+
];
105107
yield ['array_number_and_comma', '[1,]', false];
106108
yield ['array_number_and_several_commas', '[1,,]', false];
107109
yield ['array_spaces_vertical_tab_formfeed', '["
@@ -113,7 +115,9 @@ public static function jsonDataProvider(): iterable
113115
[1,
114116
1
115117
,1
116-
JSON, false];
118+
JSON,
119+
false,
120+
];
117121
yield ['array_unclosed_with_object_inside', '[{}', false];
118122
yield ['incomplete_false', '[fals]', false];
119123
yield ['incomplete_null', '[nul]', false];
@@ -226,7 +230,9 @@ public static function jsonDataProvider(): iterable
226230
yield ['string_unescaped_newline', <<<JSON
227231
["new
228232
line"]
229-
JSON, false];
233+
JSON,
234+
false,
235+
];
230236
yield ['string_unescaped_tab', '[" "]', false];
231237
yield ['string_unicode_CapitalU', '"\\UA66D"', false];
232238
yield ['string_with_trailing_garbage', '""x', false];
@@ -286,7 +292,9 @@ public static function jsonDataProvider(): iterable
286292
yield ['array_with_1_and_newline', <<<JSON
287293
[1
288294
]
289-
JSON, true];
295+
JSON,
296+
true,
297+
];
290298
yield ['array_with_leading_space', '[1]', true];
291299
yield ['array_with_several_null', '[1,null,null,null,2]', true];
292300
yield ['array_with_trailing_space', '[2] ', true];
@@ -321,7 +329,9 @@ public static function jsonDataProvider(): iterable
321329
{
322330
"a": "b"
323331
}
324-
JSON, true];
332+
JSON,
333+
true,
334+
];
325335
yield ['string_1_2_3_bytes_UTF-8_sequences', '["\\u0060\\u012a\\u12AB"]', true];
326336
yield ['string_accepted_surrogate_pair', '["\\uD801\\udc37"]', true];
327337
yield ['string_accepted_surrogate_pairs', '["\\ud83d\\ude39\\ud83d\\udc8d"]', true];
@@ -375,7 +385,9 @@ public static function jsonDataProvider(): iterable
375385
yield ['structure_trailing_newline', <<<JSON
376386
["a"]
377387
378-
JSON, true];
388+
JSON,
389+
true,
390+
];
379391
yield ['structure_true_in_array', '[true]', true];
380392
yield ['structure_whitespace_array', '[] ', true];
381393

0 commit comments

Comments
 (0)