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

Use strpos instead of str_contains in get_wporg_data function #432

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

mrsdizzie
Copy link
Member

str_contains is PHP 8 only while strpos works on older versions of PHP

Fixes #431

str_contains is PHP 8 only while strpos works on older versions of PHP

Fixes wp-cli#431
@mrsdizzie mrsdizzie requested a review from a team as a code owner August 14, 2024 19:28
@swissspidy swissspidy added this to the 2.1.23 milestone Aug 15, 2024
@swissspidy swissspidy merged commit 2a6f985 into wp-cli:main Aug 15, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New get_wporg_data code uses PHP 8+ feature
2 participants