• Resolved daymobrew

    (@daymobrew)


    I see that v1.12.0 uses str_contains/str_starts_with/str_ends_with. These are only in PHP 8 so the required PHP version should be bumped too.

    That said, I plead with you not to make these changes. I for one am stuck on hosting with 7.4 for the moment (they are very slowly migrating all customers to new control panel).

    Can you please undo those changes or add a polyfill: https://www.php.net/manual/en/function.str-contains.php#125977 (maybe I can do that in a mu-plugins plugin).

Viewing 2 replies - 1 through 2 (of 2 total)
  • You should be ok, there’s a polyfill in WordPress, in wp-includes/compat.php

    Did you see an error because of these functions?

    Thread Starter daymobrew

    (@daymobrew)

    No errors, a premptive/paranoid report. I didn’t know about the polyfill. I’ve updated my sites with WP Super Cache and zero problems. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘str_contains etc only in PHP8’ is closed to new replies.