From 9bfe330bebef0dfd2d7f0ba7a1b896fb17a13fbf Mon Sep 17 00:00:00 2001 From: Edgars Strods Date: Tue, 22 Oct 2019 11:48:20 +0300 Subject: [PATCH] Fixing variable naming bug --- src/Speller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Speller.php b/src/Speller.php index 7c2e84e..f06c2c2 100644 --- a/src/Speller.php +++ b/src/Speller.php @@ -241,7 +241,7 @@ protected abstract function getCurrencyName($type, $number, $currency); private static function assertNumber($number) { - if (!is_numeric($amount)) + if (!is_numeric($number)) { throw new InvalidArgumentException('Invalid number specified.'); }