fix: remove number_format() stub from test bootstrap

PHP built-in functions cannot be redeclared. The native number_format()
is identical in behaviour — the stub served no purpose.

Fixes: 'PHP Fatal error: Cannot redeclare number_format()' on CI PHP 8.3 lint.

Agent-Session: geomonitor v0.1.0
This commit is contained in:
peptiderepo
2026-06-13 08:21:33 +00:00
parent ca1a41f6f9
commit 41f5969a71

View File

@@ -146,10 +146,6 @@ function sanitize_text_field( string $str ): string {
return trim( $str );
}
function number_format( $num, $decimals = 0, string $decimal_point = '.', string $thousands_sep = ',' ): string {
return \number_format( $num, $decimals, $decimal_point, $thousands_sep );
}
function current_user_can( string $cap ): bool {
return true;
}