Ren Iar
Ren Iar

Reputation: 25

PHP 8.0.0 highlighting (PhpStorm)

In PhpStorm I am getting error highlighting after switching to the new PHP 8.0 syntax.

Image showing the PhpStorm IDE with a yellow line under the line of code.

My question is:

How do I tell PhpStorm to recognise the new syntax of PHP 8.0.0

Upvotes: 0

Views: 1088

Answers (2)

Ren Iar
Ren Iar

Reputation: 25

As mentioned by Urmat Zhenaliev in the previous post, the EAP version is always up-to-date with the newest version releases of supported programming languages.

So for a developer that wants to program bleeding edge technology it is wise to think about EAP (early access program/releases) installations

Upvotes: 0

Urmat Zhenaliev
Urmat Zhenaliev

Reputation: 1547

Go to settings (Ctrl + Alt + S) -> Languages & Frameworks -> PHP and change php language level to your wished php version. You could also set path to cli interpreter if you want

PhpStorm php language level settings

Upvotes: 2

Related Questions