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

Remove uses of str_ends_with() from core

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              stronk7 Eloy Lafuente (stronk7)
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Andrew Lyons Andrew Lyons
              CiBoT CiBoT
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/Mar/23

                Time Tracking

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