Problem/Motivation

PHP8.2 deprecates the use of dynamically declared variables.

Steps to reproduce

Install PHP8.2
Navigate to /admin/config/media/file-upload-options and see the errors.

Proposed resolution

Explicitly declare the protected var in the FileUploadService

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#3 3392023-3.patch850 byteselgordogrande
#2 3392023-1.patch450 byteselgordogrande

Comments

elgordogrande created an issue. See original summary.

elgordogrande’s picture

StatusFileSize
new450 bytes
elgordogrande’s picture

StatusFileSize
new850 bytes

Fixed typo in SettingsForm.php

cobadger’s picture

Status: Active » Reviewed & tested by the community

The patch in comment 3 resolved this issue in my testing.

  • d2b302c1 committed on 8.x-1.x
    Issue #3392023 by elgordogrande: Deprecated function: Creation of...
imclean’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.