title: How to remove type errors on declaration in PHP (VS Code)
body: <p>I got an error in VSCode when I declare a class in PHP. I'd like to precise the type of my variables but I keep getting error :</p>
  <p><code>Parse error: syntax error, unexpected 'float' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /... on line 12</code></p>
  <p>Here's my code :</p>
  <pre><code>class account {
      private float $solde;
      private string $nom;
      private string $prenom;
  }
  ?&gt;
  </code></pre>
  <p>I get this error in PHP v8.0.8 and v7.4.21 and didn't find anything on google ...
  Thank you for your help !</p>