Question
An old code should be converted to a newer PHP version. How could PhpStorm help with detecting backwards-incompatible updates?
Answer
To make sure that the code is compatible with the exact PHP version:
Open Settings | PHP | and set the PHP Language level to the desired one:
Click on the root of the project in the Project tool window.
In the main menu at the top of the IDE, select Code | Analyze Code | Run Inspection by name:
-
Find the Language level inspection:
Adjust Scope in the next window if required and press OK.


Comments
0 comments
Please sign in to leave a comment.