PHP 8 phpcs error: "$this" can no longer be used ...

Created on 23 June 2023, over 1 year ago
Updated 26 October 2023, about 1 year ago

Problem/Motivation

phpcs testing against PHP 8(.0/.1) shows the error for `src/Plugin/Field/FieldWidget/ZipFileWidget.php`:

`"$this" can no longer be used in a plain function or method since PHP 7.1.`

Proposed resolution

Attached patch uses `new TranslatableMarkup()` in the process() method same as core file widget.

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada bgilhome Victoria

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

Comments & Activities

Production build 0.71.5 2024