HomePhorge

Fix "Creation of dynamic property is deprecated" PHP 8.2 error in MimeMailParser

Description

Fix "Creation of dynamic property is deprecated" PHP 8.2 error in MimeMailParser

Summary:
Add #[AllowDynamicProperties] attribute to avoid the deprecation notice.

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

# ERROR 8192: Creation of dynamic property MimeMailParser::$parts is deprecated at [/var/www/html/phorge/phorge/externals/mimemailparser/MimeMailParser.class.php:137]
#  #0 MimeMailParser::parse() called at [<phorge>/externals/mimemailparser/MimeMailParser.class.php:126]

Closes T15765

Test Plan: See T15765

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: avivey, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15765

Differential Revision: https://we.phorge.it/D25563

Details

Provenance
Andre KlapperAuthored on Mar 31 2024, 1:32 AM
themackabuPushed on Tue, Mar 25, 8:07 PM
Parents
rP186768ccfd88: Fix PHP 8.1 "strlen(null)" exception when received email lacks From header
Branches
Unknown
Tags
Unknown

Event Timeline