File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -228,15 +228,15 @@ function takes_many_args(
228
228
</programlisting >
229
229
</example >
230
230
<para >
231
- As of PHP 8.0.0, passing mandatory arguments after optional arguments
231
+ As of PHP 8.0.0, declaring mandatory arguments after optional arguments
232
232
is deprecated. This can generally be resolved by dropping the default value.
233
233
One exception to this rule are arguments of the form
234
234
<code >Type $param = null</code >, where the &null; default makes the type implicitly
235
235
nullable. This usage remains allowed, though it is recommended to use an
236
236
explicit nullable type instead.
237
237
</para >
238
238
<example >
239
- <title >Passing optional arguments after mandatory arguments</title >
239
+ <title >Declaring optional arguments after mandatory arguments</title >
240
240
<programlisting role =" php" >
241
241
<![CDATA[
242
242
<?php
You can’t perform that action at this time.
0 commit comments