Skip to content

Commit

Permalink
Pass Client to Ping command (#73)
Browse files Browse the repository at this point in the history
* Add use statement to Ping

* Pass specified Client to Ping
  • Loading branch information
gjuric authored Feb 22, 2021
1 parent 8aabd4d commit 1778470
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Ping.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace ChartMogul;

use ChartMogul\Http\ClientInterface;
use ChartMogul\Resource\AbstractResource;
use ChartMogul\Service\AllTrait;

Expand All @@ -26,6 +27,6 @@ class Ping extends AbstractResource

public static function ping(ClientInterface $client = null)
{
return Ping::all();
return Ping::all([], $client);
}
}

0 comments on commit 1778470

Please sign in to comment.