PluginProbe
WP-Stateless – Google Cloud Storage / trunk
WP-Stateless – Google Cloud Storage vtrunk
4.4.3 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.3.0 2.3.1 2.3.2 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 All 62 releases
← All changes | lib/Google/src/AuthHandler/AuthHandlerFactory.php +1 -4 3.2.0trunk View file →
@@ -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);