Skip to content

Commit

Permalink
use late-static binding to new up the client class
Browse files Browse the repository at this point in the history
  • Loading branch information
danalloway committed May 13, 2015
1 parent 2c84453 commit 43e8fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Client
public static function instance($name = 'default')
{
if (! isset(self::$instances[$name])) {
self::$instances[$name] = new Client($name);
self::$instances[$name] = new static($name);
}
return self::$instances[$name];
}
Expand Down

0 comments on commit 43e8fb0

Please sign in to comment.