This commit is contained in:
sc0Vu 2018-01-25 11:53:26 +08:00
parent ed57c92446
commit ed5a17c256

View File

@ -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);
}