diff --git a/src/HttpHandler/Guzzle6HttpHandler.php b/src/HttpHandler/Guzzle6HttpHandler.php index 62fb96781..58d415aee 100644 --- a/src/HttpHandler/Guzzle6HttpHandler.php +++ b/src/HttpHandler/Guzzle6HttpHandler.php @@ -33,7 +33,7 @@ class Guzzle6HttpHandler private $client; /** - * @var LoggerInterface + * @var null|LoggerInterface */ private $logger; diff --git a/src/HttpHandler/HttpHandlerFactory.php b/src/HttpHandler/HttpHandlerFactory.php index a9d2e27c5..167628112 100644 --- a/src/HttpHandler/HttpHandlerFactory.php +++ b/src/HttpHandler/HttpHandlerFactory.php @@ -52,7 +52,9 @@ public static function build( $client = new Client(['handler' => $stack]); } - if ($logger !== false) { + if ($logger === false) { + $logger = null; + } else { $logger = $logger ?? ApplicationDefaultCredentials::getDefaultLogger(); }