From 4a60041ddec85d819277379db9df8cbc0ecbcca6 Mon Sep 17 00:00:00 2001 From: sc0Vu Date: Fri, 12 Jan 2018 12:28:44 +0800 Subject: [PATCH] Fix call function statically error Non-static method Web3\Utils::toString() should not be called statically. --- src/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils.php b/src/Utils.php index c2a10e4..96af4fd 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -221,7 +221,7 @@ class Utils * @param mixed $value * @return string */ - public function toString($value) + public static function toString($value) { try { $value = (string) $value;