Problem/Motivation
When sending a mail using the legacy builder on PHP 8.2:
Deprecated function: Creation of dynamic property Drupal\symfony_mailer\Plugin\EmailBuilder\LegacyEmailBuilder::$theme is deprecated in Drupal\symfony_mailer\Plugin\EmailBuilder\LegacyEmailBuilder->build() (line 112 of modules/contrib/symfony_mailer/src/Plugin/EmailBuilder/LegacyEmailBuilder.php).
Issue fork symfony_mailer-3343097
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ptmkenny commentedJust need to declare $theme property as is done in Email.php.
Comment #6
adamps commentedThanks. I'm still using PHP 8.1 so unfortunately I don't see any warning for these cases. I'll change one of the automatic tests to use PHP 8.2.