fixed description about passing [mandatory|optional] parameter order

Closes GH-270.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351933 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2020-12-06 22:22:36 +00:00
parent 5f8047c12b
commit e296d2443b

View file

@ -226,7 +226,7 @@ function takes_many_args(
</programlisting>
</example>
<para>
As of PHP 8.0.0, passing optional arguments after mandatory arguments
As of PHP 8.0.0, passing mandatory arguments after optional arguments
is deprecated. This can generally be resolved by dropping the default value.
One exception to this rule are arguments of the form
<code>Type $param = null</code>, where the &null; default makes the type implicitly