Feature Request: Guess PHP version from composer.json

When creating a project, PHPStorm recognizes the presence of the composer file, but it doesn't automatically set the PHP version based on the require in the composer.json:

{
"require": {
"php": ">=7.0"
}
}

This is not a huge thing, but can save some headaches when you have a lot of different projects or switch frequently. I have to dig into random repos quite often and this feature would have saved me a couple days in headaches by now, as it would have pointed out some obvious things, based on the setting which PHP version to use (instead of the default).

Similar the PHPunit version could be guessed from the composer.json as well.

2 comments
Comment actions Permalink

Detection of PHPUnit is implemented: https://youtrack.jetbrains.com/issue/WI-22641. Seems like we don't have a similar one for setting PHP language level.

You can submit this feature request to our tracking system here: http://youtrack.jetbrains.com/issues/WI#newissue=yes.

0

Please sign in to leave a comment.