1. In the global environment variable: configure php.exe
2. Configure php.exe in phpStorm
1. Click setting:
2. Enter "php" to search; find the relevant directory as shown in the figure:
3. Select the current php environment version:
.
4. Click Interpreter:
5. Click PHP executable as shown in the figure to find the path of the php.exe file in the php environment:
6. Finally click Apply->ok; exit phpstorm and restart it.