From f53de0a61e11a88626da4d4935a65f2eee23e80c Mon Sep 17 00:00:00 2001 From: Halil Beycan Date: Wed, 8 Dec 2021 22:23:04 +0300 Subject: [PATCH 1/2] If parameters are sent as an array. To avoid problems. --- src/Contract.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Contract.php b/src/Contract.php index 87ad1fc..25843f4 100644 --- a/src/Contract.php +++ b/src/Contract.php @@ -587,6 +587,8 @@ class Contract $method = array_splice($arguments, 0, 1)[0]; $callback = array_pop($arguments); + $arguments = is_array($arguments[0]) ? $arguments[0] : $arguments; + if (!is_string($method)) { throw new InvalidArgumentException('Please make sure the method is string.'); } From 788a08f71088140ce723a8ee6eecbb907bfe477b Mon Sep 17 00:00:00 2001 From: Halil Beycan Date: Thu, 24 Feb 2022 19:55:18 +0300 Subject: [PATCH 2/2] update guzzle version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index f6ea9d7..9784018 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "guzzlehttp/guzzle": "^6.3|^7.0", + "guzzlehttp/guzzle": "^7.0", "PHP": "^7.1", "kornrunner/keccak": "~1.0", "phpseclib/phpseclib": "~2.0.11",