- Issue created by @inascon
- Merge request !10201Issue #3487733: TypeError: array_filter(): Argument #1 ($array) must be of... → (Open) created by sourav_paul
- 🇳🇿New Zealand quietone
Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies.
- 🇮🇳India sourav_paul Kolkata
sourav_paul → changed the visibility of the branch 3487733-typeerror-arrayfilter to hidden.
- 🇮🇳India sourav_paul Kolkata
sourav_paul → changed the visibility of the branch 3487733-typeerror-arrayfilter to active.
- Merge request !10240Issue #3487733: TypeError: array_filter(): Argument #1 ($array) must be of type array, null given → (Open) created by sourav_paul
The Needs Review Queue Bot → tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- Status changed to Postponed: needs info
about 1 month ago 12:19am 24 May 2025 - 🇺🇸United States dcam
This line of code changed 7 months ago. Instead of calling
array_filter()
directly, now it callsFilterArray::removeEmptyStrings()
instead. I don't expect that this solved the problem. I suspect that this may result in a fatal error becauseFilterArray::removeEmptyStrings()
typehints the $value parameter as an array. So if the inherent problem of calling this with NULL still exists, then I'd expect an error.Someone who is experiencing this problem needs to report what happens with an up-to-date version of Drupal 11.