We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
strpos
Add a lint for strpos !== false to use ! str_contains and the opposite. See WordPress/wordpress-develop@9e9887d. str_contains is a php 8.0 function but a polyfill was added in core in WP 5.9. WordPress/wordpress-develop@3cc8f12
strpos !== false
! str_contains
str_contains
The text was updated successfully, but these errors were encountered:
Note: This type of sniff should be created in the Modernize standard in PHPCSExtra and then used by WPCS.
Modernize
Sorry, something went wrong.
No branches or pull requests
Is your feature request related to a problem?
Describe the solution you'd like
Add a lint for
strpos !== false
to use! str_contains
and the opposite. See WordPress/wordpress-develop@9e9887d.str_contains
is a php 8.0 function but a polyfill was added in core in WP 5.9. WordPress/wordpress-develop@3cc8f12Additional context (optional)
The text was updated successfully, but these errors were encountered: