PHP 8.2 deprecation warnings re creation of dynamic property

Created on 5 March 2023, almost 2 years ago
Updated 10 March 2023, almost 2 years ago

Problem/Motivation

Running under PHP 8.2, dblog shows:
* Deprecated function: Creation of dynamic property Drupal\xautoload\Adapter\ClassFinderAdapter::$defaultBehavior is deprecated in Drupal\xautoload\Adapter\ClassFinderAdapter->__construct() (line 61 of /container/application/{website}/sites/all/modules/contrib/xautoload/src/Adapter/ClassFinderAdapter.php).
* Deprecated function: Creation of dynamic property Drupal\xautoload\Adapter\ClassFinderAdapter::$psr0Behavior is deprecated in Drupal\xautoload\Adapter\ClassFinderAdapter->__construct() (line 62 of /container/application/{website}/sites/all/modules/contrib/xautoload/src/Adapter/ClassFinderAdapter.php).

Steps to reproduce

Run xautoload under PHP 8.2

Proposed resolution

Declare these properties before use.

Remaining tasks

Write patch to declare defaultBehavior and psr0Behavior properties.

User interface changes

Nil.

API changes

Unsure.

Data model changes

Unsure.

🐛 Bug report
Status

Fixed

Version

5.8

Component

Code

Created by

🇳🇿New Zealand jonathan_hunt

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024