From b12b4f740f9bb4360cf483c6173a35f83102dba1 Mon Sep 17 00:00:00 2001 From: Thiemo Kreuz Date: Fri, 18 May 2018 20:01:05 +0200 Subject: [PATCH] Throw InvalidArgumentException when validating/formatting null Change-Id: Ia46f76a89b26c830aab70ebf5fcc222711c325d1 --- src/MathFormatter.php | 5 ++--- src/MathValidator.php | 14 ++++++++------ tests/phpunit/MathFormatterTest.php | 4 ++-- tests/phpunit/MathValidatorTest.php | 4 ++-- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/MathFormatter.php b/src/MathFormatter.php index c19aee1..848a6a9 100644 --- a/src/MathFormatter.php +++ b/src/MathFormatter.php @@ -1,7 +1,6 @@ getValue(); diff --git a/src/MathValidator.php b/src/MathValidator.php index d4713d3..30ff46d 100644 --- a/src/MathValidator.php +++ b/src/MathValidator.php @@ -1,26 +1,28 @@