0

this is my code i use symfony5 and php v8.2

class Favoris
{
     //id
   #[ORM\id]
   #[ORM\GeneratedValue]
   #[ORM\Column]
    private ?int $id=null;
}

an error is defined when i declare the variable id

error : 'Construct typed properties is supported since PHP 7.4PHP(PHP6401)' SETTINGS PHP VSCODE version i try to declare an int but there is a problem with the version of php.

  • Does this answer your question? [how to change the version of php in vscode?](https://stackoverflow.com/questions/68639575/how-to-change-the-version-of-php-in-vscode) – b126 Mar 29 '23 at 08:23

0 Answers0