title: How to fix PHP Parse error: syntax error, unexpected '?' in vendor\laravel\framework\src\Illuminate\Foundation\helpers.php on line 500
body: <p>Everything is working perfectly but on running I get this error</p>
  <blockquote>
  <p>PHP Parse error: syntax error, unexpected '?' in htdocs\example\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php on line 500</p>
  </blockquote>
  <p><strong>on line 500</strong></p>
  <pre><code>return $factory-&gt;of($arguments[0], $arguments[1])-&gt;times($arguments[2] ?? null);
  </code></pre>