moodlehq / moodle-cs

Moodle Coding Style
https://github.com/moodlehq/moodle-cs
GNU General Public License v3.0
18 stars 16 forks source link

Detect that classes which extend moodleform* call parent:: in overridden functions #183

Open jrchamp opened 2 months ago

jrchamp commented 2 months ago

We ran into a few issues when parent:: wasn't being called for an overridden function, so I was inspired by #106. I thought maybe this would go into #92, but it should probably be applied to core code also. Here's a quick list of examples that would be good to include sooner rather than later. I hope this helps! ❤️

Call parent::

Method override should not exist