From 1778470799be1be96e2759da7df2e8f6942ee2b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Goran=20Juri=C4=87?= Date: Mon, 22 Feb 2021 14:17:03 +0100 Subject: [PATCH] Pass Client to Ping command (#73) * Add use statement to Ping * Pass specified Client to Ping --- src/Ping.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Ping.php b/src/Ping.php index a4bd567..6f6ca90 100644 --- a/src/Ping.php +++ b/src/Ping.php @@ -2,6 +2,7 @@ namespace ChartMogul; +use ChartMogul\Http\ClientInterface; use ChartMogul\Resource\AbstractResource; use ChartMogul\Service\AllTrait; @@ -26,6 +27,6 @@ class Ping extends AbstractResource public static function ping(ClientInterface $client = null) { - return Ping::all(); + return Ping::all([], $client); } }