Closed dmitriim closed 2 years ago
Hi @dmitriim ,
Thanks for reporting this. It looks like the check is picking up any block class, even those which aren't the extending the moodleblock class.
Hi,
yeah, this is already reported @ moodlehq/moodle-cs#23 , so I'm closing it now. See you there!
Ciao :-)
I'm getting CI errors like
global $PAGE cannot be used in block classes. Use $this->page. (moodle.PHP.ForbiddenGlobalUse.BadGlobal)
in a class block_formclass block_form extends \core\form\persistent
This doesn't look correct as basically we can't have any classes containing 'block'.