@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildNullsafePropertyFetch
Function: buildNullsafePropertyFetch()
ts
function buildNullsafePropertyFetch(
variable,
name,
attributes?): PhpExprNullsafePropertyFetch;Builds a PHP nullsafe property fetch expression node.
Parameters
variable
The variable or expression representing the object.
name
The name of the property, either an identifier or an expression.
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpExprNullsafePropertyFetch node.
