Deprecation warning for creation of dynamic properties in 8.2+

Created on 10 February 2025, 2 months ago

Problem/Motivation

A deprecation warning is thrown when module code is executed on PHP 8.2+ environments as creation of dynamic properties is deprecated (https://wiki.php.net/rfc/deprecate_dynamic_properties). This will throw an error exception in 9.x if not used with "#[AllowDynamicProperties]".

Steps to reproduce

Executing the module on a PHP 8.3 environment the error is logged in watchdog. In review, the warning does not come up in PHPCompatiblity with PHPCS.

Proposed resolution

Update NiceFileMime.php to declare the config property for the class.

Remaining tasks

None

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States webbywe

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