You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -110,15 +111,23 @@ public function collect(Request $request, Response $response, \Exception $except
110
111
// fail silently when the logout URL cannot be generated
111
112
}
112
113
114
+
$extractRoles = function ($role) {
115
+
if (!$roleinstanceof RoleInterface && !$roleinstanceof Role) {
116
+
thrownew \InvalidArgumentException(sprintf('Roles must be instances of %s or %s (%s given).', RoleInterface::class, Role::class, is_object($role) ? get_class($role) : gettype($role)));
0 commit comments