Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-77100

Remove uses of str_ends_with() from core

XMLWordPrintable

      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.

            pholden Paul Holden
            stronk7 Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Andrew Lyons Andrew Lyons
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 26 minutes
                26m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.