@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildDeclareItem
Function: buildDeclareItem()
ts
function buildDeclareItem(
key,
value,
attributes?): PhpDeclareItem;Builds a PHP declare item node.
Parameters
key
The key of the declare item, either a string or a PhpIdentifier.
string | PhpIdentifier
value
The expression representing the value of the declare item.
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpDeclareItem node.
