Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The code requires PHP 8, so tell wp-env to use it. #541

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

tellyworth
Copy link

The codebase includes a couple of calls to str_contains(), which is PHP 8.0+ only. It's possible to get a fatal error when running the local environment on 7.4, but that will be the default for some users.

This one-liner tells wp-env to use PHP 8.0.

@dd32
Copy link
Member

dd32 commented Nov 21, 2022

WordPress contains a compat version of the str_* functions for older PHP releases.

Any reason this shouldn't be bumped to PHP 8.1 though? (The next version we'll use on WordPress.org)

@ocean90
Copy link
Member

ocean90 commented Nov 21, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants