An error is occurring with the "str_contains" function (classes/output/core_renderer.php line 166) in one of our Moodle sites running on PHP 7.4 with the latest snap theme version 4.1.3.
Snap v4.1.3 is for Moodle 4.1 and that version of Moodle requires minimum PHP 7.4.0.
The "str_contains" function wasn't introduced until PHP 8.0 so this function should be breaking sites on anything under PHP 8.0 using the latest snap version.
Hi Team,
An error is occurring with the "str_contains" function (classes/output/core_renderer.php line 166) in one of our Moodle sites running on PHP 7.4 with the latest snap theme version 4.1.3.
Snap v4.1.3 is for Moodle 4.1 and that version of Moodle requires minimum PHP 7.4.0.
The "str_contains" function wasn't introduced until PHP 8.0 so this function should be breaking sites on anything under PHP 8.0 using the latest snap version.
Screenshot of the browser error:![snap_issue](https://github.com/open-lms-open-source/moodle-theme_snap/assets/76801379/bf222c4c-4899-485e-adb7-edfe4c118964)
Thanks