Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5566

Verify some deprecated debugging uses

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 2.8.2
    • Local: Code checker
    • None
    • MOODLE_28_STABLE

      With MDL-39474 some changes about how to detect DEBUG_DEVELOPER were performed.

      So, for 2.6 and upwards:

      • Warnings:
        • It's recommended to use $CFG->debugdeveloper instead of debugging(..., DEBUG_DEVELOPER) to check for DEBUG_DEVELOPER level.
      • Errors:
        • It's forbidden to set $CFG->debug in PHP code (but some exceptions in installers and friends). Instead set_debugging() must be used.
        • Never set $CFG->debugdeveloper in code.

      It would be nice to have these covered by the code checker.

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

              Created:
              Updated:
              Resolved:

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