PHP 7.1 Nullable Default Function Parameter : <p>In PHP 7.1 when the following function is called:</p>

<pre><code>private function dostuff(?int $limit = 999) { }
</code></pre>

<p>with syntax like so:</p>

<pre><code>dostuff(null);
</code></pre>

<p>the value of $limit becomes null. So I guess it can be said that the value of <code>$limit</code> was explicitly set to <code>null</code>. Is there any way to overcome this? I.e. when a null value (i.e. the lack of a value) is encountered use the default, whether it is implicit or explicit?</p>

<p>Thanks</p>
