From 41f5969a71708e1cdb7769a0eb7442b4c0986697 Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Sat, 13 Jun 2026 08:21:33 +0000 Subject: [PATCH] fix: remove number_format() stub from test bootstrap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tests/bootstrap.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 0f40a1b..7d3269e 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -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; }