Merge branch 'MDL-70876_311' of https://github.com/stronk7/moodle into MOODLE_311_STABLE

This commit is contained in:
Jun Pataleta 2021-03-02 16:02:15 +08:00
commit c9d57344b0
3 changed files with 4 additions and 7 deletions

View file

@ -504,10 +504,9 @@ class mock_course_backup_setting extends course_backup_setting {
* @param string $errstr
* @param string $errfile
* @param int $errline
* @param array $errcontext
* @return null
*/
function backup_setting_error_handler($errno, $errstr, $errfile, $errline, $errcontext) {
function backup_setting_error_handler($errno, $errstr, $errfile, $errline) {
if ($errno !== E_RECOVERABLE_ERROR) {
// Currently we only want to deal with type hinting errors
return false;