Dynamic property declaration

Created on 21 November 2023, about 1 year ago

Problem/Motivation

Running the offsite payment with PHP 8.2 revealed an unintended dynamic declaration of the $eventDispatcher property.

"Deprecated function: Creation of dynamic property Drupal\commerce_unzer\PluginForm\OffsiteRedirect\UnzerForm::$eventDispatcher is deprecated in Drupal\commerce_unzer\PluginForm\OffsiteRedirect\UnzerForm->__construct() (line 85 of modules/contrib/commerce_unzer/src/PluginForm/OffsiteRedirect/UnzerForm.php)."

Proposed resolution

Declare the $eventDispatcher property.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany cspitzlay 🇩🇪🇪🇺

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

Comments & Activities

Production build 0.71.5 2024