str_contains etc only in PHP8
-
Follow up to this thread.
Is it possible to allow plugin compatibility with sites that use WP6.3 and under that still use PHP7.4?The site will return a fatal PHP error if installed on <6.3 when using PHP7.4 as str_contains is only available in PHP8. I noticed in the previous thread there is a polyfill in compat.php but that loads after advanced-cache.php in the wp-settings.php file pre 6.3, so doesn’t kick in.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘str_contains etc only in PHP8’ is closed to new replies.