Merge 788a08f710
into bd40f1946a
This commit is contained in:
commit
e7cbff8a4c
@ -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",
|
||||
|
@ -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.');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user