PHP 8.3 dynamic properties deprecated warnings

Created on 30 July 2024, 5 months ago

Problem/Motivation

Following with Drupal 11 requirements there should be php8.3 and higher.
After setting this php version we've got deprecation warnings about dynamic properties in a class:

Deprecated function: Creation of dynamic property H5PCore::$url is deprecated in H5PCore->__construct() (line 2073 of modules/contrib/h5p/vendor/h5p/h5p-core/h5p.classes.php).
Deprecated function: Creation of dynamic property H5PCore::$development_mode is deprecated in H5PCore->__construct() (line 2075 of modules/contrib/h5p/vendor/h5p/h5p-core/h5p.classes.php).
Deprecated function: Creation of dynamic property H5PCore::$aggregateAssets is deprecated in H5PCore->__construct() (line 2077 of modules/contrib/h5p/vendor/h5p/h5p-core/h5p.classes.php).
Deprecated function: Creation of dynamic property H5PCore::$fullPluginPath is deprecated in H5PCore->__construct() (line 2080 of modules/contrib/h5p/vendor/h5p/h5p-core/h5p.classes.php).
Deprecated function: Creation of dynamic property H5PCore::$relativePathRegExp is deprecated in H5PCore->__construct() (line 2083 of modules/contrib/h5p/vendor/h5p/h5p-core/h5p.classes.php).

Steps to reproduce

Open admin page.

Proposed resolution

We add the variables definition to the class.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇦Ukraine yuriy.korzhov

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024