From fbe5f18518bd9fe4d617eef585411783ff62857d Mon Sep 17 00:00:00 2001 From: Aaron Bauman Date: Thu, 6 Feb 2020 11:59:46 -0500 Subject: [PATCH] Remove validation check from Configuration constructor --- src/Configuration.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Configuration.php b/src/Configuration.php index 08ab4e6..7100597 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -12,11 +12,6 @@ class Configuration public function __construct(array $config) { - foreach (['api_login', 'transaction_key', 'sandbox'] as $required_key) { - if (!isset($config[$required_key])) { - throw new \InvalidArgumentException("You must provide a value for $required_key"); - } - } $this->apiLogin = $config['api_login']; $this->transactionKey = $config['transaction_key']; $this->sandbox = $config['sandbox'];