Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-9675

Creation of dynamic properties deprecated - more cases under PHP 8.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.3.6, 4.4.3
    • Module: Scheduler
    • None
    • 2024080103
    • MOODLE_403_STABLE, MOODLE_404_STABLE

      Hi,

      I have discovered warnings similar to CONTRIB-9626.

      After installing the latest master version of $plugin->version   = 2024080103 (2024-08-14) .

      on this system:

      • Moodle 4.3.6+ (23 August 2024)
      • database mariadb (10.11.6-MariaDB-0+deb12u1)     
        php version 8.0.0 is required and you are running 8.2.20

      I'm getting warnings.

      1) On pages such as:

      /mod/scheduler/view.php?what=viewstudent&id=37&appointmentid=1

      I'm getting

      Deprecated: Creation of dynamic property scheduler_appointment_info::$showboookinginfo is deprecated in /var/www/html/moodle/mod/scheduler/renderable.php on line 714

       

      2) On pages like

      /mod/scheduler/view.php?id=37&subpage=myappointments&offset=-1&what=view

      I'm getting

      Deprecated: Creation of dynamic property action_menu_link::$formid is deprecated in /var/www/html/moodle/mod/scheduler/teacherview.php on line 474

      I can see no such deprecations on another system with PHP 8.1.17

      I have these deprecations are described on:

      https://php.watch/versions/8.2/dynamic-properties-deprecated

      where among others I read:

      "The deprecation notice is emitted on PHP 8.2 and later. In PHP 9.0, dynamic properties will result in a fatal error."

            bostelm Henning Bostelmann
            pmk Przemek Kaszubski
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

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