PHP 8.1/8.2 Compat
turtlepod opened this issue · 3 comments
turtlepod commented
Describe the bug
Activating the plugin in site with PHP 8.2 trigger this deprecated notice:
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /nas/content/live/devcic/wp-includes/functions.php on line 7127
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /nas/content/live/devcic/wp-includes/functions.php on line 2182
Steps to Reproduce
- Install the plugin.
- Make sure you use PHP 8.2
- Make sure you set WP_DEBUG to true
- Activate the plugin.
- See the php notice
Screenshots, screen recording, code snippet
Environment information
Windows 11 Pro.
Chome (latest)
WordPress information
Host: WP Engine
WP: Version 6.3.2
Code of Conduct
- I agree to follow this project's Code of Conduct
TylerB24890 commented
This occurs on PHP 8.1 as well.
EDIT: Looks like there's a PR open already: #135
turtlepod commented
Thanks @TylerB24890
Title updated.
darylldoyle commented
This is closed by #135