From 06a4bb43c1d276405ef381c0779328f24ebc8656 Mon Sep 17 00:00:00 2001 From: Andrei Susanu Date: Fri, 6 Dec 2019 22:12:22 +0200 Subject: [PATCH] Reset config to it's initial values --- lib/ShopifySDK.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ShopifySDK.php b/lib/ShopifySDK.php index b8d00f0..35f8a22 100644 --- a/lib/ShopifySDK.php +++ b/lib/ShopifySDK.php @@ -306,6 +306,13 @@ public function __call($resourceName, $arguments) */ public static function config($config) { + /** + * Reset config to it's initial values + */ + self::$config = array( + 'ApiVersion' => '2019-04' + ); + foreach ($config as $key => $value) { self::$config[$key] = $value; }