| @@ -24,9 +24,9 @@ | ||
| 24 | 24 | { |
| 25 | 25 | /** |
| 26 | 26 | * Builds out a default http handler for the installed version of guzzle. |
| 27 | 27 | * |
| 28 | - * @return Guzzle5AuthHandler|Guzzle6AuthHandler|Guzzle7AuthHandler | |
| 28 | + * @return Guzzle6AuthHandler|Guzzle7AuthHandler | |
| 29 | 29 | * @throws Exception |
| 30 | 30 | */ |
| 31 | 31 | public static function build($cache = null, array $cacheConfig = []) |
| 32 | 32 | { |
| @@ -33,15 +33,12 @@ | ||
| 33 | 33 | $guzzleVersion = null; |
| 34 | 34 | if (defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { |
| 35 | 35 | $guzzleVersion = ClientInterface::MAJOR_VERSION; |
| 36 | 36 | } elseif (defined('\GuzzleHttp\ClientInterface::VERSION')) { |
| 37 | - // @phpstan-ignore-next-line | |
| 38 | 37 | $guzzleVersion = (int) substr(ClientInterface::VERSION, 0, 1); |
| 39 | 38 | } |
| 40 | 39 | |
| 41 | 40 | switch ($guzzleVersion) { |
| 42 | - case 5: | |
| 43 | - return new Guzzle5AuthHandler($cache, $cacheConfig); | |
| 44 | 41 | case 6: |
| 45 | 42 | return new Guzzle6AuthHandler($cache, $cacheConfig); |
| 46 | 43 | case 7: |
| 47 | 44 | return new Guzzle7AuthHandler($cache, $cacheConfig); |