@@ -106,7 +106,7 @@ public function __construct(A $a, DInterface $d)
106
106
107
107
class E
108
108
{
109
- public function __construct (D $ d = null )
109
+ public function __construct (? D $ d = null )
110
110
{
111
111
}
112
112
}
@@ -162,13 +162,6 @@ public function __construct(Dunglas $j, Dunglas $k)
162
162
}
163
163
}
164
164
165
- class OptionalParameter
166
- {
167
- public function __construct (CollisionInterface $ c = null , A $ a , Foo $ f = null )
168
- {
169
- }
170
- }
171
-
172
165
class BadTypeHintedArgument
173
166
{
174
167
public function __construct (Dunglas $ k , NotARealClass $ r )
@@ -202,7 +195,7 @@ public function __construct(A $k, $foo, Dunglas $dunglas, array $bar)
202
195
203
196
class MultipleArgumentsOptionalScalar
204
197
{
205
- public function __construct (A $ a , $ foo = 'default_val ' , Lille $ lille = null )
198
+ public function __construct (A $ a , $ foo = 'default_val ' , ? Lille $ lille = null )
206
199
{
207
200
}
208
201
}
@@ -226,7 +219,7 @@ public function __construct(
226
219
*/
227
220
class ClassForResource
228
221
{
229
- public function __construct ($ foo , Bar $ bar = null )
222
+ public function __construct ($ foo , ? Bar $ bar = null )
230
223
{
231
224
}
232
225
@@ -345,7 +338,7 @@ public function setBar()
345
338
{
346
339
}
347
340
348
- public function setOptionalNotAutowireable (NotARealClass $ n = null )
341
+ public function setOptionalNotAutowireable (? NotARealClass $ n = null )
349
342
{
350
343
}
351
344
@@ -392,7 +385,7 @@ class DecoratorImpl implements DecoratorInterface
392
385
393
386
class Decorated implements DecoratorInterface
394
387
{
395
- public function __construct ($ quz = null , \NonExistent $ nonExistent = null , DecoratorInterface $ decorated = null , array $ foo = [])
388
+ public function __construct ($ quz = null , ? \NonExistent $ nonExistent = null , ? DecoratorInterface $ decorated = null , array $ foo = [])
396
389
{
397
390
}
398
391
}
0 commit comments