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:
@@ -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 ─────────────────────────────────────────── */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user