@@ -120,7 +120,7 @@ public function __construct(A $a, DInterface $d)
120
120
121
121
class E
122
122
{
123
- public function __construct (D $ d = null )
123
+ public function __construct (? D $ d = null )
124
124
{
125
125
}
126
126
}
@@ -176,13 +176,6 @@ public function __construct(Dunglas $j, Dunglas $k)
176
176
}
177
177
}
178
178
179
- class OptionalParameter
180
- {
181
- public function __construct (CollisionInterface $ c = null , A $ a , Foo $ f = null )
182
- {
183
- }
184
- }
185
-
186
179
class BadTypeHintedArgument
187
180
{
188
181
public function __construct (Dunglas $ k , NotARealClass $ r )
@@ -216,7 +209,7 @@ public function __construct(A $k, $foo, Dunglas $dunglas, array $bar)
216
209
217
210
class MultipleArgumentsOptionalScalar
218
211
{
219
- public function __construct (A $ a , $ foo = 'default_val ' , Lille $ lille = null )
212
+ public function __construct (A $ a , $ foo = 'default_val ' , ? Lille $ lille = null )
220
213
{
221
214
}
222
215
}
@@ -240,7 +233,7 @@ public function __construct(
240
233
*/
241
234
class ClassForResource
242
235
{
243
- public function __construct ($ foo , Bar $ bar = null )
236
+ public function __construct ($ foo , ? Bar $ bar = null )
244
237
{
245
238
}
246
239
@@ -455,7 +448,7 @@ public function setBar()
455
448
{
456
449
}
457
450
458
- public function setOptionalNotAutowireable (NotARealClass $ n = null )
451
+ public function setOptionalNotAutowireable (? NotARealClass $ n = null )
459
452
{
460
453
}
461
454
@@ -513,7 +506,7 @@ class DecoratorImpl implements DecoratorInterface
513
506
514
507
class Decorated implements DecoratorInterface
515
508
{
516
- public function __construct ($ quz = null , \NonExistent $ nonExistent = null , DecoratorInterface $ decorated = null , array $ foo = [])
509
+ public function __construct ($ quz = null , ? \NonExistent $ nonExistent = null , ? DecoratorInterface $ decorated = null , array $ foo = [])
517
510
{
518
511
}
519
512
}
0 commit comments