Unexpected MOODLE_INTERNAL check ???

Unexpected MOODLE_INTERNAL check ???

by Joseph Rézeau -
Number of replies: 1
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of 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 -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of 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)