Skip to content

Commit b070f03

Browse files
committed
fix test fail when Guzzle 6
1 parent a3eebe0 commit b070f03

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Illuminate/Http/Client/Pool.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ public function __construct(Factory $factory = null)
4040
{
4141
$this->factory = $factory ?: new Factory();
4242

43-
$this->handler = Utils::chooseHandler();
43+
if (method_exists(Utils::class, 'chooseHandler')) {
44+
$this->handler = Utils::chooseHandler();
45+
} else {
46+
$this->handler = \GuzzleHttp\choose_handler();
47+
}
4448
}
4549

4650
/**

0 commit comments

Comments
 (0)