From e0ce324d0074c3e6f9a048c80eec35e82478592f Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Wed, 22 Apr 2026 08:38:42 +0000 Subject: [PATCH] fix(tests): drop floatval() stub (PHP builtin; redeclaration fatal on 8.3) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PHP Lint (8.3) failed in CI with: Cannot redeclare floatval() in tests/bootstrap.php floatval is a PHP built-in function and cannot be shadowed. The rest of the bootstrap stubs (post_type_exists, register_post_type, __, current_user_can, absint, etc.) are WordPress-only names and do not collide with PHP builtins. No CHANGELOG bump — test harness only, no runtime behavior change. --- tests/bootstrap.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 0363ca4..3c362d9 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -103,9 +103,6 @@ function absint( $value ): int { return abs( (int) $value ); } -function floatval( $value ): float { - return (float) $value; -} /* ── Test assertion helpers ─────────────────────────────────────────── */