Unexpected MOODLE_INTERNAL check ???

Unexpected MOODLE_INTERNAL check ???

by Joseph Rézeau -
Number of replies: 1
Core developers को तस्बिर Particularly helpful Moodlers को तस्बिर Plugin developers को तस्बिर Testers को तस्बिर Translators को तस्बिर

Checking my plugins compatibility with Moodle 4.0, using Code checker local_codechecker 3.1.0 2022022500. Why does it throw this error "Unexpected MOODLE_INTERNAL check" on lines which contain "defined('MOODLE_INTERNAL') || die();"

???

Average of ratings: -
In reply to Joseph Rézeau

Re: Unexpected MOODLE_INTERNAL check ???

by Renaat Debleu -
Core developers को तस्बिर Particularly helpful Moodlers को तस्बिर Plugin developers को तस्बिर

Have a look at MDLSITE-5967 and coding style:  Sometimes the MOODLE_INTERNAL check is simply not necessary, so you get the hint to drop the line.

Average of ratings: Useful (4)