Automattic / Automattic/HyperDB
db.php deprecated use of function
Open
- Dominant language
- PHP
- Stars
- 150
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
There is a use of stripos() in db.php which can lead to an error:
Line 439 of db.php:
> if ( false !== stripos( $query_match, $key ) ) {
As of PHP 7.3, the second parameter of stripos() cannot be an integer. I have had success overcoming this by casting the parameter as a string:
> if ( false !== stripos( $query_match, (String)$key ) ) {
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.