title: VS Code - does not recognize php 8 syntax
body: <p>I have recently set up vsCode with PHP.
  However, it shows errors on following lines.</p>
  <pre><code>public static function myFunction(): bool|string
  </code></pre>
  <blockquote>
  <p>error : syntax error, unexpected '|', expecting ';' or '{'</p>
  </blockquote>
  <pre><code>$app-&gt;options('/{routes:.+}', fn (ResponseInterface $response) =&gt; $response);
  </code></pre>
  <blockquote>
  <p>error : syntax error, unexpected '$response' (T_VARIABLE), expecting
  ')'</p>
  </blockquote>
  <p>How can I make it recognize that this is the correct syntax.</p>