When using a Final or Abstract in a namespace i get a Syntax error: unexpected token 'Final' (PHP(PHP2014) error..
From php 8 that is now allowed : https://github.com/PHPCompatibility/PHPCompatibility/pull/1402

I have the php version set as php 8.3.0 and yet i get these annoying errors in the 'problems' tab constantly since the project i'm on right now uses both these keywords in some namespaces.

Is there a setting i'm missing to get rid of it (i'd rather not add php_diagnostic_php2014 = false in my .editorconfig)
In case it's useful i'm using vscode on a mac, but i doubt it has to do with that.

Thank you for pointing that out,

will be fixed.

I'm afraid syntax errors can't be disabled. They break the parsing and make the editor basically "blind".

    Write a Reply...