Automattic\WooCommerce\Vendor\GraphQL\Utils

Value::ofErrors │ private static │ WC 1.0

Method of the class: Value{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = Value::ofErrors( $errors ): array;
$errors(array<int, CoercionError>) (required)
.

Value::ofErrors() code WC 11.1.2

private static function ofErrors(array $errors): array
{
    return ['errors' => $errors, 'value' => null];
}