Automattic\WooCommerce\EmailEditor\Validator
Schema::nullable
Sets the schema as nullable.
Method of the class: Schema{}
No Hooks.
Returns
static.
Usage
$Schema = new Schema(); $Schema->nullable();
Schema::nullable() Schema::nullable code WC 10.8.1
public function nullable() {
$type = $this->schema['type'] ?? array( 'null' );
return $this->update_schema_property( 'type', is_array( $type ) ? $type : array( $type, 'null' ) );
}