We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 623bbeb commit 75d5ddcCopy full SHA for 75d5ddc
src/Providers/Traits/Singleton.php
@@ -25,6 +25,10 @@ public static function getInstance(Client $client)
25
if (!static::$instance) {
26
static::$instance = new static($client);
27
}
28
+
29
+ // since we can call this for multiple clients we
30
+ // make sure this client is updated with the latest one
31
+ static::$instance->setClient($client);
32
return static::$instance;
33
34
0 commit comments