FILE: ...mod/assign/submission/mahara/classes/observers.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
130 | ERROR | "$this" can no longer be used in a plain function or
| | method since PHP 7.1.
----------------------------------------------------------------------
These lines contain a $this reference in a static context:
https://github.com/MaharaProject/moodle-assignsubmission_mahara/blob/87aa4d84d586d97080777bc059e16098f35928ce/classes/observers.php#L121-L135
Found using https://github.com/squizlabs/PHP_CodeSniffer and https://github.com/PHPCompatibility/PHPCompatibility.
Report output: