Automattic\WooCommerce\EmailEditor\Validator
Schema::non_nullable
Sets the schema as non-nullable.
Метод класса: Schema{}
Хуков нет.
Возвращает
static
.
Использование
$Schema = new Schema(); $Schema->non_nullable();
Код 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 ); }