skip to Main Content

Every time I open a new project or folder, I have to set the PHP version in the IDE along with the interpreter. I want to set 7.4 as the default. How can I achieve this?

2

Answers


  1. Sure, just use File | New Projects Settings | Settings for New Projects... and set the settings there.

    This will be applied for every new project that will be created in the future on that computer.

    Obviously, this has to be global PHP interpreter (that is available on the same OS where you run PhpStorm) and not project-specific one (e.g. Docker based interpreter is project-specific).

    enter image description here

    Login or Signup to reply.
  2. There is an additional step related to LazyOne’s answer above. Once you access ‘New Project Settings’ > ‘Settings for New Project’… You need to Select "Language and Frameworks’ > PHP and then in that configuration area you will point the interpreter to the Language version you want. Finally Ok will set that as the default

    PHP Storm Default Interpreter Selection Screen

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search