-
Bug
-
Resolution: Fixed
-
Minor
-
3.8, 3.9
-
MOODLE_38_STABLE, MOODLE_39_STABLE
-
MOODLE_38_STABLE
-
. Trying to use values of type null, bool, int, float or resource as an
array (such as $null["key"]) will now generate a notice. This does not
affect array accesses performed by list().
RFC: https://wiki.php.net/rfc/notice-for-non-valid-array-container
This issue is about to detect as many uses of this type as possible and add the missing checks to avoid the notices. Note that, apart from the notice, the outcome remains BC, evaluating as null, so no change in the result is expected.
We'll be using unit, acceptance and web server logs to detect wrong uses. It's not possible to detect them with regex/semantic searches, so some uses may remain hidden until detected in practice.
WIP on this happening @ https://github.com/stronk7/moodle/compare/master...MDL-67114
- blocks
-
MDL-67438 Coding style cleanup: mod/wiki/parser/parser.php
- Closed
- has been marked as being related by
-
MDL-66881 Fix problems reported in apache logs before 3.8 release
- Closed
-
MDL-67379 Upgrade SCSSPHP to 1.0.6
- Closed
-
MDL-67421 Hodgepodge TODOs & mysteries related with php74 support
- Closed
- will help resolve
-
MDL-66185 Form: Test using any of supported option in duration element.
- Closed
- mentioned on