-
Bug
-
Resolution: Fixed
-
Minor
-
3.11, 4.0
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE
-
MDL-71539_master_PHP8optionalparams -
In MDL-69863 Brickfield Education Labs accessibility toolkit landed. While testing MDL-71390, I've seen scenarios in lib/tests/behat/largeforms.feature are failing when they are run with PHP 8.0:
PHP errors found:
|
Unknown error type: Required parameter $resultstime follows optional parameter $html at moodle/admin/tool/brickfield/classes/accessibility.php: 223 |
F---------....................................
|
--- Failed steps:
|
001 Scenario: Small form with checkboxes (not using workaround) # lib/tests/behat/largeforms.feature:21 |
When I am on the "C1" "Course" page logged in as "admin" # lib/tests/behat/largeforms.feature:15 |
PHP errors found:
|
Unknown error type: Required parameter $resultstime follows optional parameter $html at admin/tool/brickfield/classes/accessibility.php: 223 (Exception) |
As it was done in MDL-70893, optional parameters being declared before required are forbidden.
See https://php.watch/versions/8.0#deprecate-required-param-after-optional
- blocks
-
MDL-71390 PHP8 does not like our max_input_vars workaround. Proposed solution - set minimum requirement for max_input_vars
- Closed
- Discovered while testing
-
MDL-71390 PHP8 does not like our max_input_vars workaround. Proposed solution - set minimum requirement for max_input_vars
- Closed
- is a regression caused by
-
MDL-69863 Brickfield Education Labs accessibility toolkit core integration
- Closed