sirwu I don't know why I can't recognize enum when using it in the editor. How can I solve this problem
JakubMisek sirwu Thank you for posting the question. Set a correct PHP version ( see https://docs.devsense.com/vscode/php-version/#choosing-php-version ) that supports enum. In older versions of PHP, enum causes Syntax Error.