Improve test coverage
This commit is contained in:
8 files changed
+944
-156
No files matched your search
+1
-1
@@ -351,7 +351,7 @@ public static function sanitize_float(string $input):float {
|
||||
|
||||
$output = \str_replace(",", ".", $input);
|
||||
if (($output = \filter_var($output, FILTER_VALIDATE_FLOAT)) === false) {
|
||||
throw new MDgenericInvalidInputsException("Input is readable as a floating point value");
|
||||
throw new MDgenericInvalidInputsException("Input is not readable as a floating point value");
|
||||
}
|
||||
return $output;
|
||||
|
||||
|
||||
Reference in new issue
Block a user