@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildScalarBool
Function: buildScalarBool()
ts
function buildScalarBool(value, attributes?): PhpExprConstFetch;Builds a PHP boolean scalar expression (represented as a ConstFetch of true or false).
Parameters
value
boolean
The boolean value.
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpExprConstFetch node representing the boolean scalar.
