ECA Form: Invalid array key type array in \Drupal\eca_render\Plugin\Action\RenderElementActionBase::execute

Created on 20 October 2023, 8 months ago
Updated 7 March 2024, 4 months ago

Problem/Motivation

PhpStan discovered an issue that looks quite strange to me. Not sure how this could have worked ever in the past. And also confusing, why PhpStand hasn't discovered this before.

Here is the error:

 ------ -------------------------------------------------------------- 
  Line   modules/render/src/Plugin/Action/RenderElementActionBase.php  
 ------ -------------------------------------------------------------- 
  102    Invalid array key type array.                                 
 ------ -------------------------------------------------------------- 

The line it complains about is

NestedArray::setValue($target, $name, NestedArray::mergeDeep($target[$name], $build));

At that point, $name is always an array. Not sure where we started to get this wrong. Or am I missing something?

@mxh, I've assigned this to you as you may have an explanation. I don't even know how to fix this.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024