Search code examples
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)?


Solution

  • 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.