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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user