← All docs
boolval() — internals
Compiler internals for boolval(): lowering path, type checks, and runtime helpers.
boolval() — internals
Where it lives
- Signature:
src/builtins/types/boolval.rs - Lowering:
src/codegen/lower_inst/builtins.rs:587 (lower_boolval) - Function symbol:
lower_boolval()
Lowering notes
- Lowers
boolval()using the same concrete scalar PHP truthiness rules asIsTruthy.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function boolval(mixed $value): bool
What the type checker enforces
- Arity: takes exactly 1 argument.