From ed5a17c256d345feef0c737dd985de4a099467f4 Mon Sep 17 00:00:00 2001 From: sc0Vu Date: Thu, 25 Jan 2018 11:53:26 +0800 Subject: [PATCH] typo --- src/Utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utils.php b/src/Utils.php index 9bc06c3..fc0353b 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -111,9 +111,9 @@ class Utils public static function hexToBin($value) { if (!is_string($value)) { - throw new InvalidArgumentException('The value to toHex function must be string.'); + throw new InvalidArgumentException('The value to hexToBin function must be string.'); } - if (strpos($value, '0x') === 0) { + if (self::isZeroPrefixed($value)) { $count = 1; $value = str_replace('0x', '', $value, $count); }