@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildDeclare
Function: buildDeclare()
ts
function buildDeclare(
declares,
options,
attributes?): PhpStmtDeclare;Builds a PHP declare statement node.
Parameters
declares
An array of PhpDeclareItem nodes.
options
Optional configuration for the declare statement (statements).
stmts?
PhpStmt[] | null
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpStmtDeclare node.
