From c1db9f36c15a25444869703e4d3b1155c13fa523 Mon Sep 17 00:00:00 2001 From: donmbelembe Date: Sat, 17 Dec 2022 12:36:29 +0100 Subject: [PATCH] fixes #122 Response::create method was deprecated on symfony/http-foundation v6 --- src/FacebookDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FacebookDriver.php b/src/FacebookDriver.php index 9fdb82b..bad9767 100755 --- a/src/FacebookDriver.php +++ b/src/FacebookDriver.php @@ -117,7 +117,7 @@ public function matchesRequest() public function verifyRequest(Request $request) { if ($request->get('hub_mode') === 'subscribe' && $request->get('hub_verify_token') === $this->config->get('verification')) { - return Response::create($request->get('hub_challenge'))->send(); + return (new Response($request->get('hub_challenge')))->send(); } }