@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildNullableType
Function: buildNullableType()
ts
function buildNullableType(type, attributes?): PhpNullableType;Builds a nullable PHP type node.
Parameters
type
The type node to make nullable.
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpNullableType node.
