Unexpected MOODLE_INTERNAL check ???

Unexpected MOODLE_INTERNAL check ???

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();"

???

དཔྱ་སྙོམས་ཀྱི་སྐུགས་ཚུ།: -
In reply to Joseph Rézeau

Re: Unexpected MOODLE_INTERNAL check ???

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.