-
Bug
-
Resolution: Fixed
-
Minor
-
4.2.11, 4.3.9, 4.4.5, 4.5.1
In the odslib.class.php the MoodleODSCell class uses a dynamic property, which results in a deprecation error when using PHP version 8.2/8.3.
The dynamic property is $merge.
Dynamic properties' deprecation info from php watch:
https://php.watch/versions/8.2/dynamic-properties-deprecated
I also created the change for MOODLE_402_STABLE:
Pull 4.2 Branch: MDL-83650-402_fix_ods_cell
Pull 4.2 Diff URL: https://github.com/moodle/moodle/compare/MOODLE_402_STABLE...Cl3mensM:moodle:MDL-83650-402_fix_ods_cell
Workflow passing: https://github.com/Cl3mensM/moodle/actions/runs/11710604791
So, basically changed it for all versions that support PHP 8.2/8.3
Steps to reproduce
- Login as admin
- Turn on full debug logging
- Go to http://yourmoodleurl/lib/tests/other/spreadsheettestpage.php and generate the ODS sample file by clicking "Test ODS format".
- Verify you see the deprecation error Creation of dynamic property MoodleODSCell::$merge is deprecated in the error log. In ubuntu this should live in /var/log/apache/error.log
- blocks
-
MDL-80117 Prepare Moodle for PHP 8.4
-
- Open
-