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.

CommentFileSizeAuthor
#2 variable_3305683.patch1.03 KBmvantuch

Comments

mvantuch created an issue. See original summary.

mvantuch’s picture

StatusFileSize
new1.03 KB
sano’s picture

The patch worked for me in php 8.1. Thank you.

poker10’s picture

Status: Active » Needs review