typo
This commit is contained in:
parent
ed57c92446
commit
ed5a17c256
@ -111,9 +111,9 @@ class Utils
|
|||||||
public static function hexToBin($value)
|
public static function hexToBin($value)
|
||||||
{
|
{
|
||||||
if (!is_string($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;
|
$count = 1;
|
||||||
$value = str_replace('0x', '', $value, $count);
|
$value = str_replace('0x', '', $value, $count);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user