Warning foreach() argument must be of type array|object, string given

Created on 29 December 2021, almost 3 years ago
Updated 31 May 2023, over 1 year ago

Problem/Motivation

Support php 8 would be great!

Steps to reproduce

go to bulk update exclude form, get a warning as below

Warning: foreach() argument must be of type array|object, string given in Drupal\Core\Render\Element\Tableselect::valueCallback()

Proposed resolution

pass empty array instead of empty string to default value property.

πŸ’¬ Support request
Status

Fixed

Component

Code

Created by

πŸ‡ͺπŸ‡¬Egypt Mohamed Nabawy

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.71.5 2024