From 269adb0021ff41bdc14a986490611ef0905a1fd3 Mon Sep 17 00:00:00 2001 From: SyedMuradAliShah <55234974+SyedMuradAliShah@users.noreply.github.com> Date: Tue, 24 Aug 2021 00:25:15 +0500 Subject: [PATCH] Change getStatus() to getStatusCode() in Client.php According to issue #27 `Symfony\Component\BrowserKit\Response::getStatus()` was deprecated since v4.3 and was removed in v5.0. The `getStatusCode()` method must be used in newest library versions. --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 1debd36..dbd7ac1 100644 --- a/src/Client.php +++ b/src/Client.php @@ -12,7 +12,7 @@ protected function filterResponse($response) $content = str_replace(chr(0), '', $response->getContent()); $newResponse = new Response( $content, - $response->getStatus(), + $response->getStatusCode(), $response->getHeaders() );