@@ -116,8 +116,8 @@ public function provideValidValues(): Generator
116116 }
117117
118118 /**
119- * @param mixed $value
120- * @param array<int, string > $invalidParameters
119+ * @param mixed $value
120+ * @param list<int|string| array<int|string, mixed> > $invalidParameters
121121 *
122122 * @dataProvider provideInvalidValues
123123 */
@@ -148,12 +148,9 @@ public function testProcessInvalid(
148148 $ parameters = [];
149149 foreach ($ type ->getParameters () as $ parameter ) {
150150 if ($ parameter ->isInvalid ()) {
151- $ parameterString = $ parameter ->getKey ();
152- if ($ parameter ->hasValue ()) {
153- $ parameterString .= ": {$ parameter ->getValue ()}" ;
154- }
155-
156- $ parameters [] = $ parameterString ;
151+ $ parameters [] = $ parameter ->hasValue ()
152+ ? [$ parameter ->getKey (), $ parameter ->getValue ()]
153+ : $ parameter ->getKey ();
157154 }
158155 }
159156
@@ -177,7 +174,7 @@ public function provideInvalidValues(): Generator
177174 ]];
178175
179176 yield ['whatever ' , DateTimeInterface::ATOM , [
180- 'format: Y-m-d\TH:i:sP ' ,
177+ [ 'format ' , ' Y-m-d\TH:i:sP '] ,
181178 'A four digit year could not be found ' ,
182179 PHP_VERSION_ID < 8_01_07 ? 'Data missing ' : 'Not enough data available to satisfy format ' ,
183180 ]];
@@ -187,7 +184,7 @@ public function provideInvalidValues(): Generator
187184 ], 'timestamp ' ];
188185
189186 yield ['2013-04-12T16:40:00-04:00 ' , DateTimeInterface::COOKIE , [
190- 'format: l, d-M-Y H:i:s T ' ,
187+ [ 'format ' , ' l, d-M-Y H:i:s T '] ,
191188 'A textual day could not be found ' ,
192189 'Unexpected data found. ' ,
193190 'The separation symbol could not be found ' ,
0 commit comments