diff --git a/src/BaseAuthorizator.php b/src/BaseAuthorizator.php index d38548d..0d229ef 100644 --- a/src/BaseAuthorizator.php +++ b/src/BaseAuthorizator.php @@ -56,7 +56,10 @@ public function authOrders( */ public function getUnmatchedTransactions(array $validVariables): array { - if (($validVariables !== [] || array_keys($validVariables) === range(0, count($validVariables) - 1)) === false) { + if ($validVariables === []) { + return []; + } + if (array_keys($validVariables) !== range(0, count($validVariables) - 1)) { throw new \InvalidArgumentException( 'The variables array must be associative.' . "\n" . 'To solve this issue: Remove other values that are not valid variable symbols. You can do this, '