diff --git a/lib/PayPal/Validation/NumericValidator.php b/lib/PayPal/Validation/NumericValidator.php index 62fa5605..df054bb2 100644 --- a/lib/PayPal/Validation/NumericValidator.php +++ b/lib/PayPal/Validation/NumericValidator.php @@ -19,7 +19,7 @@ class NumericValidator */ public static function validate($argument, $argumentName = null) { - if (trim($argument) != null && !is_numeric($argument)) { + if (trim($argument) !== '' && !is_numeric($argument)) { throw new \InvalidArgumentException("$argumentName is not a valid numeric value"); } return true;