Unverified Commit bb80e1d0 authored by Jonathan Hedstrom's avatar Jonathan Hedstrom Committed by Jonathan Hedstrom
Browse files

Issue #3319187 by jhedstrom: PHP 8 issue with array_intersect

parent c3f05a32
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ class Role extends GroupingBase implements ContainerFactoryPluginInterface {
        if ($id !== RoleInterface::AUTHENTICATED_ID) {
          $query->condition('roles', $id);
        }
        $results[$id] = $query->execute();
        $results[] = $query->execute();
      }
      return count($results) > 1 ? call_user_func_array('array_intersect', $results) : reset($results);
    }