Skip to content

Commit

Permalink
fix test fail when Guzzle 6
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkawata committed Aug 14, 2021
1 parent a3eebe0 commit b070f03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Illuminate/Http/Client/Pool.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ public function __construct(Factory $factory = null)
{
$this->factory = $factory ?: new Factory();

$this->handler = Utils::chooseHandler();
if (method_exists(Utils::class, 'chooseHandler')) {
$this->handler = Utils::chooseHandler();
} else {
$this->handler = \GuzzleHttp\choose_handler();
}
}

/**
Expand Down

0 comments on commit b070f03

Please sign in to comment.