Automattic\WooCommerce\EmailEditor\Validator

Schema::non_nullablepublicWC 1.0

Sets the schema as non-nullable.

Метод класса: Schema{}

Хуков нет.

Возвращает

static.

Использование

$Schema = new Schema();
$Schema->non_nullable();

Код Schema::non_nullable() WC 10.0.2

public function non_nullable() {
	$type = $this->schema['type'] ?? null;
	return null === $type
	? $this->unset_schema_property( 'type' )
	: $this->update_schema_property( 'type', is_array( $type ) ? $type[0] : $type );
}