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

Missing 'new' keyword when throwing exceptions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2, 3.3, 3.4
    • Fix Version/s: 3.2.4, 3.3.1
    • Component/s: General
    • Labels:

      Description

      1. Do a grep throughout the Moodle core and confirm there are no cases where we are calling

        throw (\)coding_exception

        without using the new keyword.

      I discovered this when reviewing the analytics code and wondered if perhaps this was copied from other places in core and found a few.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Jul/17