Undefined property: DiffFormatter::$line_stats DiffEngine.php:861 with PHP 8

Created on 27 April 2023, almost 2 years ago

Problem/Motivation

Error when running drush fda with PHP 8:

Undefined property: DiffFormatter::$line_stats DiffEngine.php:861 [warning]
Undefined array key "counter" DiffEngine.php:861 [warning]
Undefined array key "x" DiffEngine.php:861 [warning]
Undefined array key "y" DiffEngine.php:864

Steps to reproduce

Install features and diff, create a feature with a diff, run drush fda.

Proposed resolution

Define $line_stat property in DiffFormatter class, as it is defined in DrupalDiffFormatter class. Features uses the DiffFormatter class directly.

πŸ› Bug report
Status

Active

Version

3.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lwalley

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