From e04b04d2d91cf8edccd87d05181853e762f79479 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Thu, 31 Mar 2016 19:34:17 +0200 Subject: [PATCH] Fix BigInteger::parse() not throwing exception on PHP 7 --- src/BigInteger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BigInteger.php b/src/BigInteger.php index da3894d..e271335 100644 --- a/src/BigInteger.php +++ b/src/BigInteger.php @@ -95,7 +95,7 @@ public static function parse($number, $base = 10) $sign = ''; } - if ($number === false) { + if ($number === false /* PHP 5 */ || $number === '' /* PHP 7 */) { throw new \InvalidArgumentException('The value cannot be empty.'); }