foreach() argument must be of type array|object, null given DerivativeDiscoveryDecorator.php:102

Created on 9 May 2024, 7 months ago
Updated 9 June 2024, 6 months ago

Problem/Motivation

The derivative DynamicLocalTasks.php does not return an array. So we get the warning:

foreach() argument must be of type array|object, null given DerivativeDiscoveryDecorator.php:102

Steps to reproduce

Install the module and open any page. Also, appears in Drush commands etc. Everytime the class "core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php" is called.

Proposed resolution

Return empty array.

Remaining tasks

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇷Greece TheodorosPloumis Greece

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