-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
4.2.9
-
None
-
2023052400
-
MOODLE_402_STABLE
With PHP 8.2 or later the warning Creation of dynamic property action_link::$primary is deprecated appears on mod/scheduler/view.php?id=....
Problem seen with Moodle 4.2.8+ (Build: 20240712) and PHP 8.2.8.
Steps to reproduce issue
1. Set up Moodle site with PHP 8.2 or 8.3.
2. Enable debugging (Debug messages = DEVELOPER, Display debug messages = Yes).
3. Create a course and enrol a teacher.
4. Turn on editing, add a mod_scheduler instance, give it a name and click Save and display.
Expected results
The page displays with no errors.
Actual results
The following warning appears twice:
Deprecated: Creation of dynamic property action_link::$primary is deprecated in .../mod/scheduler/renderable.php on line 351