Call to undefined function str_contains()
-
This plugin uses str_contains() which is provided only on PHP v8 or up. Somewhere in this plugin, we need this snippet:
if (!function_exists(‘str_contains’)) {
function str_contains (string $haystack, string $needle)
{
return empty($needle) || strpos($haystack, $needle) !== false;
}
}This fixes these 2 issues:
- the task spinner won’t stop.
- it can’t bulk rename
Quote from https://www.php.net/manual/en/function.str-contains.php#126277
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Call to undefined function str_contains()’ is closed to new replies.