From 5a3ec570505bebfb3754a6e4f45c3a133789a014 Mon Sep 17 00:00:00 2001 From: Gijs Straathof Date: Thu, 1 Apr 2021 11:00:29 +0200 Subject: [PATCH] Accept non-string values in response payload --- .../Http/Authentication/AuthenticationSuccessHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Security/Http/Authentication/AuthenticationSuccessHandler.php b/src/Security/Http/Authentication/AuthenticationSuccessHandler.php index cf55767..ffcc8ce 100644 --- a/src/Security/Http/Authentication/AuthenticationSuccessHandler.php +++ b/src/Security/Http/Authentication/AuthenticationSuccessHandler.php @@ -58,7 +58,7 @@ public function onAuthenticationSuccess(Request $request, TokenInterface $token) /** * Add fields to the response payload. */ - public function addResponsePayload(string $key, string $value): void + public function addResponsePayload(string $key, $value): void { $this->responsePayload[$key] = $value; }