@@ -99,7 +99,7 @@ public function __construct(A $a, DInterface $d)
99
99
100
100
class E
101
101
{
102
- public function __construct (D $ d = null )
102
+ public function __construct (? D $ d = null )
103
103
{
104
104
}
105
105
}
@@ -155,13 +155,6 @@ public function __construct(Dunglas $j, Dunglas $k)
155
155
}
156
156
}
157
157
158
- class OptionalParameter
159
- {
160
- public function __construct (CollisionInterface $ c = null , A $ a , Foo $ f = null )
161
- {
162
- }
163
- }
164
-
165
158
class BadTypeHintedArgument
166
159
{
167
160
public function __construct (Dunglas $ k , NotARealClass $ r )
@@ -195,7 +188,7 @@ public function __construct(A $k, $foo, Dunglas $dunglas, array $bar)
195
188
196
189
class MultipleArgumentsOptionalScalar
197
190
{
198
- public function __construct (A $ a , $ foo = 'default_val ' , Lille $ lille = null )
191
+ public function __construct (A $ a , $ foo = 'default_val ' , ? Lille $ lille = null )
199
192
{
200
193
}
201
194
}
@@ -211,7 +204,7 @@ public function __construct(A $a, Lille $lille, $foo = 'some_val')
211
204
*/
212
205
class ClassForResource
213
206
{
214
- public function __construct ($ foo , Bar $ bar = null )
207
+ public function __construct ($ foo , ? Bar $ bar = null )
215
208
{
216
209
}
217
210
@@ -350,7 +343,7 @@ public function setBar()
350
343
{
351
344
}
352
345
353
- public function setOptionalNotAutowireable (NotARealClass $ n = null )
346
+ public function setOptionalNotAutowireable (? NotARealClass $ n = null )
354
347
{
355
348
}
356
349
@@ -399,7 +392,7 @@ class DecoratorImpl implements DecoratorInterface
399
392
400
393
class Decorated implements DecoratorInterface
401
394
{
402
- public function __construct ($ quz = null , \NonExistent $ nonExistent = null , DecoratorInterface $ decorated = null , array $ foo = [])
395
+ public function __construct ($ quz = null , ? \NonExistent $ nonExistent = null , ? DecoratorInterface $ decorated = null , array $ foo = [])
403
396
{
404
397
}
405
398
}
0 commit comments