How to set a default PHP version for all projects in this computer?

I have to keep setting the php version for every new project along with its interpreter. How do  I make them global default?

0
3 comments

Set it using this menu:

You can also disable "Synchronize IDE Settings with composer.json" option at File | New Project Settings | Languages & Frameworks | PHP | Composer for it to not overwrite your IDE language level based on composer.json.

1

Do note (at least with PHPStorm 2021+) that when you go to regular settings menu, PHP is an option way at the top.

But when setting it for all projects, PHP is suddenly under languages and frameworks.

1

Please sign in to leave a comment.