This commit is contained in:
Halil Beycan 2022-02-24 16:55:21 +00:00 committed by GitHub
commit e7cbff8a4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,7 @@
} }
], ],
"require": { "require": {
"guzzlehttp/guzzle": "^6.3|^7.0", "guzzlehttp/guzzle": "^7.0",
"PHP": "^7.1", "PHP": "^7.1",
"kornrunner/keccak": "~1.0", "kornrunner/keccak": "~1.0",
"phpseclib/phpseclib": "~2.0.11", "phpseclib/phpseclib": "~2.0.11",

View File

@ -587,6 +587,8 @@ class Contract
$method = array_splice($arguments, 0, 1)[0]; $method = array_splice($arguments, 0, 1)[0];
$callback = array_pop($arguments); $callback = array_pop($arguments);
$arguments = is_array($arguments[0]) ? $arguments[0] : $arguments;
if (!is_string($method)) { if (!is_string($method)) {
throw new InvalidArgumentException('Please make sure the method is string.'); throw new InvalidArgumentException('Please make sure the method is string.');
} }