-
Sub-task
-
Resolution: Fixed
-
Critical
-
4.2
-
MOODLE_402_STABLE
-
MOODLE_402_STABLE
-
-
Team Hedgehog Sprint 1 review, Team Hedgehog Sprint 2.1, Team Hedgehog Sprint 2.2, Team Hedgehog 2023 Sprint 1.3, Team Hedgehog 2023 Sprint 1.4, Team Hedgehog 2023 Sprint 2.0, Team Hedgehog 2023 Sprint 2.1, Team Hedgehog 2023 Sprint 2.2
This issue was created to address the issue in question_display_options::$statewhichincorrect caused by the deprecation of dynamic properties in PHP 8.2.It absolutely must not exist. It is only used in qtype_ddmarker, as yet another horrible hack. Question_display_options is a key part of the core question API.
Below are the errors related to the deprecation of dynamic properties from PHPunit testing:
There were 3 risky tests: |
1) qtype_ddmarker\walkthrough_test::test_interactive_behaviour |
This test printed output:
|
Deprecated: Creation of dynamic property question_display_options::$statewhichincorrect is deprecated in /var/www/html/question/type/ddmarker/questiontype.php on line 71 |
Deprecated: Creation of dynamic property question_display_options::$statewhichincorrect is deprecated in /var/www/html/question/type/ddmarker/questiontype.php on line 71 |
2) qtype_ddmarker\walkthrough_test::test_interactive_grading |
This test printed output:
|
Deprecated: Creation of dynamic property question_display_options::$statewhichincorrect is deprecated in /var/www/html/question/type/ddmarker/questiontype.php on line 71 |
Deprecated: Creation of dynamic property question_display_options::$statewhichincorrect is deprecated in /var/www/html/question/type/ddmarker/questiontype.php on line 71 |
3) qtype_ddmarker\walkthrough_test::test_interactive_no_right_clears |
This test printed output:
|
Deprecated: Creation of dynamic property question_display_options::$statewhichincorrect is deprecated in /var/www/html/question/type/ddmarker/questiontype.php on line 71 |
- split to
-
MDL-77328 PHP 8.2: Dynamic Properties are deprecated for questionbase.php
- Closed