Automattic / Automattic/HyperDB

db.php deprecated use of function

Open
#77 2 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.