Skip to content

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.

4 participants