You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my local setup I use different PHP versions per project and can switch versions inside the project but default PHP version for my system is 8.0.0RC3.
However, when I'm inside the project, WP CLI ignores its specified PHP version and use the default one.
Here is PHP info for one of projects:
And here is WP CLI info in the root of that project.
Indeed, often times switching PHP version only switches the version used via the web server. The version used for WP-CLI is the cli SAPI that happens to be found first in the environment's $PATH variable. You can adapt this via different mechanisms, but they all involve doing a change the CLI environment level.
This is expected and just the way PHP CLI tools work, so closing this for now. Feel free to ping me in #cli on Slack if you need further assistance.
Bug Report
In my local setup I use different PHP versions per project and can switch versions inside the project but default PHP version for my system is
8.0.0RC3
.However, when I'm inside the project, WP CLI ignores its specified PHP version and use the default one.
Here is PHP info for one of projects:
And here is WP CLI info in the root of that project.
Is this expected behavior for WP CLI or is it a bug?
The text was updated successfully, but these errors were encountered: