Fix invalid return type
This commit is contained in:
parent
97e3e4a788
commit
00914ef324
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ class Sanitiser
|
||||||
{
|
{
|
||||||
public static function getNumber(mixed $valueToSanitise): float
|
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
|
public static function getPage(mixed $valueToSanitise): string
|
||||||
|
|
Loading…
Reference in a new issue