fix(tests): drop floatval() stub (PHP builtin; redeclaration fatal on 8.3)

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.
This commit is contained in:
peptiderepo
2026-04-22 08:38:42 +00:00
parent 850279e756
commit e0ce324d00

View File

@@ -103,9 +103,6 @@ function absint( $value ): int {
return abs( (int) $value ); return abs( (int) $value );
} }
function floatval( $value ): float {
return (float) $value;
}
/* ── Test assertion helpers ─────────────────────────────────────────── */ /* ── Test assertion helpers ─────────────────────────────────────────── */