Skip to content

Commit

Permalink
removed $debugLog parameter from guzzle handler stack
Browse files Browse the repository at this point in the history
  • Loading branch information
Roussetos Karafyllakis committed Apr 24, 2024
1 parent 21324fb commit 04d84cf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Provider/BaseCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,13 @@ final public function getSystemInfo(): SystemInfo
}

/**
* Get a guzzle handler stack which logs requests/responses if provider is
* an instance of LogsDebugData and $debugLog === true.
* Get a guzzle handler stack which logs requests/responses if provider is an instance of LogsDebugData
*/
protected function getGuzzleHandlerStack(bool $debugLog = false): HandlerStack
protected function getGuzzleHandlerStack(): HandlerStack
{
$stack = HandlerStack::create();

if (!$debugLog || !$this instanceof LogsDebugData) {
if (!$this instanceof LogsDebugData) {
return $stack;
}

Expand Down

0 comments on commit 04d84cf

Please sign in to comment.