MailPoet\EmailEditor\Validator\Schema
One_Of_Schema::non_nullable()
Sets the schema as non-nullable.
Method of the class: One_Of_Schema{}
No Hooks.
Return
null
. Nothing (null).
Usage
$One_Of_Schema = new One_Of_Schema(); $One_Of_Schema->non_nullable(): self;
One_Of_Schema::non_nullable() One Of Schema::non nullable code WC 9.8.1
public function non_nullable(): self { $null = array( 'type' => 'null' ); $one_of = $this->schema['one_of']; $value = array_filter( $one_of, function ( $item ) use ( $null ) { return $item !== $null; } ); return $this->update_schema_property( 'one_of', $value ); }