Automatic conversion of false to array is deprecated in quickedit_entity_view_alter()

Created on 9 January 2025, 14 days ago

Problem/Motivation

I need to remove this line for a our enviroment.

Deprecated function: Automatic conversion of false to array is deprecated en quickedit_entity_view_alter() (lΓ­nea 234 de /var/www/html/web/modules/contrib/quickedit/quickedit.module)

Steps to reproduce

You may install Drupal 10.4.1 version.

Proposed resolution

Before of the next line:

$build['#cache']['contexts'][] = 'user.permissions';

We should add:

if (!isset($build['#cache']['contexts']) || !is_array($build['#cache']['contexts'])) {
      $build['#cache'] = [];
}
$build['#cache']['contexts'][] = 'user.roles:authenticated';
πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain jifernandezs

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

Comments & Activities

Production build 0.71.5 2024