Method findChangedKeys in Arraydiff.php should check if both compared keys are arrays

Created on 20 February 2024, about 1 year ago

Problem/Motivation

Sometimes old and new values do not necessarily have to be of the same type. When iterating to find the changes, you may want to keep iterating because the new values are an array, but the old value was a string. This happens especially in interactions between metatag modules, schema.org, and image type fields.

Proposed resolution

Check if the old value to be compared is an array too.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain Juanjol Navarra

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