ArgumentCountError: array_intersect() (PHP 8.0)

Created on 24 August 2022, about 2 years ago
Updated 30 October 2023, about 1 year ago

Problem/Motivation

The variable_realm module crashes with:
`ArgumentCountError: array_intersect() does not accept unknown named parameters in array_intersect() (line 91 of /var/www/html/profiles/utcfs/modules/contrib/variable/variable_realm/variable_realm_union.class.inc).` in PHP 8.0

Proposed resolution

I've attached a patch which removes the parameter names from the arrays and fixes the issue.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡ΏCzech Republic mvantuch

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