Skip to content

Commit 0d21834

Browse files
authored
Merge pull request #129 from andreisusanu/master
Reset config to it's initial values
2 parents efe7b21 + 06a4bb4 commit 0d21834

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/ShopifySDK.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,13 @@ public function __call($resourceName, $arguments)
306306
*/
307307
public static function config($config)
308308
{
309+
/**
310+
* Reset config to it's initial values
311+
*/
312+
self::$config = array(
313+
'ApiVersion' => '2019-04'
314+
);
315+
309316
foreach ($config as $key => $value) {
310317
self::$config[$key] = $value;
311318
}

0 commit comments

Comments
 (0)