Skip to content

Commit 06ea551

Browse files
committed
Set guzzle everytime incase env changes.
1 parent 8ba2707 commit 06ea551

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Diff for: src/XIVAPI/Guzzle/Guzzle.php

+5-7
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@ class Guzzle
2525
*/
2626
private static function setClient()
2727
{
28-
if (self::$client === null) {
29-
self::$client = new Client([
30-
'base_uri' => self::$environment,
31-
'timeout' => self::TIMEOUT,
32-
'verify' => self::VERIFY,
33-
]);
34-
}
28+
self::$client = new Client([
29+
'base_uri' => self::$environment,
30+
'timeout' => self::TIMEOUT,
31+
'verify' => self::VERIFY,
32+
]);
3533
}
3634

3735
public static function setEnvironment(string $environment): void

0 commit comments

Comments
 (0)