Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.1k views
in Technique[技术] by (71.8m points)

phpstorm - PHP Language level missing latest (version 7.3 is the highest)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...