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

Consider renaming the mod_lesson\local\numeric namespace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.11.5, 4.0, 4.1
    • Lesson
    • None
    • MOODLE_311_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE

      While this is not a current problem (everything works ok), as reported @ MDL-73586:

      FILE: /mod/lesson/classes/local/numeric/helper.php
      ------------------------------------------------------------------------------------------------------------------------------------
      FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
      ------------------------------------------------------------------------------------------------------------------------------------
       26 | WARNING | 'numeric' is a soft reserved keyword as of PHP version 7.0 and should not be used to name a class, interface or
          |         | trait or as part of a namespace (T_NAMESPACE)
      ------------------------------------------------------------------------------------------------------------------------------------
      

      So, maybe and to be future-proof... we should consider changing that "numeric" namespace to something else not being a (soft, for now) reserved keyword.

      Ciao

            Unassigned Unassigned
            stronk7 Eloy Lafuente (stronk7)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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