Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP 8 in Visual Studio Code

I use the latest Version of Visual Studio Code (1.52.1) with PHP Intelephense 1.5.4 on Ubuntu. Despite it is the latest Version it seems not to know the new PHP 8 Syntax. For example it shows an error when using the nullsafe operator:

$myobject?->myfunction();

Is there a way to teach VSC PHP 8 or do we have to just wait for an update?

like image 528
Peter Avatar asked Mar 02 '23 20:03

Peter


1 Answers

As you can see on https://github.com/bmewburn/vscode-intelephense/milestone/26: they are actively working on adding support for PHP8. Any further questions should be posted in their issue tracker


Best credible source, posted on Dec 09 on https://github.com/bmewburn/vscode-intelephense/issues/1525#issuecomment-742115154:

It's being actively worked on. Should be out soon.

like image 155
Nico Haase Avatar answered Mar 05 '23 16:03

Nico Haase