@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildNullsafeMethodCall
Function: buildNullsafeMethodCall()
ts
function buildNullsafeMethodCall(
variable,
name,
args,
attributes?): PhpExprNullsafeMethodCall;Builds a PHP nullsafe method call expression node.
Parameters
variable
The variable or expression representing the object.
name
The name of the method, either an identifier or an expression.
args
PhpArg[] = []
An array of PhpArg nodes representing the method arguments.
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpExprNullsafeMethodCall node.
