-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.1, 4.2
-
MOODLE_401_STABLE, MOODLE_402_STABLE
-
MOODLE_401_STABLE
-
MDL-77100-401 -
This was detected as part of MDL-73587 (PHPCompatibility complete run against codebase).
The function str_ends_with() is not present in PHP version 7.4 or earlier
- mod/data/tests/preset_test.php : 390 (2 cases)
It's working because PHPUnit installs a php80 polyfill, making the function available, bur we shouldn't have it in core.
- Discovered while testing
-
MDL-73587 Perform a complete PHPCompatibility 8.1 execution against codebase
- Closed