Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-76411 PHP 8.2: Dynamic Properties are deprecated
  3. MDL-77327

PHP 8.2: Dynamic Properties are deprecated for question_display_options::$statewhichincorrect

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.2
    • 4.2
    • Questions
    • 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
      

       

            timhunt Tim Hunt
            meirza.arson@moodle.com Meirza
            Meirza Meirza
            Andrew Lyons Andrew Lyons
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 10 minutes
                3h 10m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.