From 7ccb2639265588d7887835959332890de0caec46 Mon Sep 17 00:00:00 2001 From: Clark Winkelmann Date: Tue, 2 Jan 2018 00:27:13 +0100 Subject: [PATCH] Fix array_only usage --- src/Forum/AuthenticationResponseFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forum/AuthenticationResponseFactory.php b/src/Forum/AuthenticationResponseFactory.php index a705ab617..c597d3c0d 100644 --- a/src/Forum/AuthenticationResponseFactory.php +++ b/src/Forum/AuthenticationResponseFactory.php @@ -110,7 +110,7 @@ class AuthenticationResponseFactory ['token' => $token->id], // List of the fields that can't be edited during sign up // Only includes attributes on the sign up form, otherwise this could leak private attribute names - ['identification_fields' => array_only(array_keys($identification), ['username', 'email'])] + ['identification_fields' => array_keys(array_only($identification, ['username', 'email']))] ); }