Fix invalid return type

This commit is contained in:
grandeljay 2022-06-23 20:32:53 +02:00
parent 97e3e4a788
commit 00914ef324

View file

@ -6,7 +6,7 @@ class Sanitiser
{
public static function getNumber(mixed $valueToSanitise): float
{
return preg_replace('/[^0-9\.]+/', '', $valueToSanitise);
return floatval(preg_replace('/[^0-9\.]+/', '', $valueToSanitise));
}
public static function getPage(mixed $valueToSanitise): string