Skip to content

Commit

Permalink
Rewording named arguments documentation as per PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
ekinhbayar committed Nov 29, 2020
1 parent de0f84f commit 330fce5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions language/functions.xml
Expand Up @@ -228,8 +228,8 @@ function takes_many_args(
<para>
As of PHP 8.0.0, passing optional arguments after mandatory arguments
is deprecated. This can generally be resolved by dropping the default value.
One exception to this rule are parameters of the form
Type $param = &null;, where the &null; default makes the type implicitly
One exception to this rule are arguments of the form
<code>Type $param = &null;</code>, where the &null; default makes the type implicitly
nullable. This usage remains allowed, though it is recommended to use an
explicit nullable type instead.
</para>
Expand Down Expand Up @@ -633,7 +633,7 @@ array_fill(start_index: 0, num: 100, value: 50);
</para>

<example>
<title>Same as above example with a different order of parameters</title>
<title>Same example as above with a different order of parameters</title>
<programlisting role="php">
<![CDATA[
<?php
Expand All @@ -644,7 +644,7 @@ array_fill(value: 50, num: 100, start_index: 0);
</example>

<para>
You can combine named arguments with positional arguments. In this case,
Named arguments can be combined with positional arguments. In this case,
the named arguments must come after the positional arguments.
It is also possible to specify only some of the optional arguments of a
function, regardless of their order.
Expand Down

0 comments on commit 330fce5

Please sign in to comment.