Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm trying to setup Xdebug and while doing that I'm trying to ensure that all PHP-versions and setup of that is exactly right.

I've matched the PHP-version on the server (7.4), by installing and linking the right PHP-version using Brew (I'm on a Mac).

So in a terminal, if I write php --version I get: version: 7.4.14:

PHP version on a Mac


I've set the CLI-interpreter in PhpStorm to point to that same PHP-executable:

PHP executable in PhpStorm


But in spite of this, I can only set PHP version 7.3 to be the highest language level:

PHP Language level missing in PhpStorm


Solution attempts:

All these things have been found in random cracks and articles. None of them worked.

  1. Invalidated Cached and restarted PhpStorm ( File >> Invalidate Cache and restart ).
  2. Uncheck 'Synchronize IDE Settings with composer.json' in Settings >> Languages & Frameworks >> PHP >> Composer. I had to first insert a path to remove it. But it didn't do anything anyway.
  3. Tried to see if there was any upgrades to the "PHP Latest"-plugin, but I couldn't see any pending updates (v. 0.4).

Overarching question

How do I get the latest version in the PHP Language Level field (to also get better code hints)?

question from:https://stackoverflow.com/questions/65859453/php-language-level-missing-latest-version-7-3-is-the-highest

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
2.1k views
Welcome To Ask or Share your Answers For Others

1 Answer

My version was this: 2018.2.3 - Build #PS-182.4323.68 built September 13, 2018

You need to upgrade your IDE. Latest stable version is 2020.3.1.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...