-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.4
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
In our CLI logs, we have many PHP warnings like this :
PHP Notice: Indirect modification of overloaded property core\message\message::$customdata has no effect in course/classes/task/content_notification_task.php on line 129 |
PHP Warning: Illegal string offset 'notificationpictureurl' in course/classes/task/content_notification_task.php on line 129 |
We use PHP 7.4.
In PHP 8.0, this warning seems to be a fatal error.
If it can help, I paste the snippet used to reproduce issue :
<?php
|
|
define('CLI_SCRIPT', true); |
|
require 'config.php'; |
$CFG->debug = 32767; |
$CFG->debugdisplay = 1; |
|
$eventdata = new \core\message\message(); |
$eventdata->customdata = array('data1' => 1); |
$eventdata->customdata['data2'] = 2; |
- is a regression caused by
-
MDL-70083 Notify users about new or updated course content
- Closed