From a67968f1743149591320695628a8def2b394bcb8 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 24 May 2021 11:59:52 +0200 Subject: [PATCH] Revert "Update for Guzzle 7 (#141)" This reverts commit cf4eb3edc798380d09f34293c16c28ca0c2a7a27. --- composer.json | 2 +- src/Logging/MessageFormatter.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 7576a00..668fb8c 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "library", "require": { "php": "^7.3|^8.0", - "guzzlehttp/guzzle": "^6.3|^7.0", + "guzzlehttp/guzzle": "^6.3", "guzzlehttp/guzzle-services": "^1.0", "monolog/monolog": "^1.22|^2.0", "netresearch/jsonmapper": "^1.4", diff --git a/src/Logging/MessageFormatter.php b/src/Logging/MessageFormatter.php index 7acb5a0..c4a6ef0 100644 --- a/src/Logging/MessageFormatter.php +++ b/src/Logging/MessageFormatter.php @@ -44,8 +44,8 @@ public function __construct($template, $token) */ public function format( RequestInterface $request, - $response = null, - $error = null + ResponseInterface $response = null, + \Exception $error = null ) { $template = parent::format($request, $response, $error);