str_contains() is PHP 8.0 only – broken compatibility
-
Plugin requirements states that minimum PHP version is 7.4 but the last plugin version (4.2.0) uses two calls to the function str_contains() (in the settings.php file) that is PHP 8.0 only, breaking my site (and assume many others…)
A simple patch changing str_contains() to strpos() in the mentioned file fixes the issue. Please, consider doing so in your code, or update the requirements to be PHP 8.0.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘str_contains() is PHP 8.0 only – broken compatibility’ is closed to new replies.