Automattic\WooCommerce\Vendor\GraphQL\Validator
SDLValidationContext::reportError
Method of the class: SDLValidationContext{}
No Hooks.
Returns
null. Nothing (null).
Usage
$SDLValidationContext = new SDLValidationContext(); $SDLValidationContext->reportError( $error ): void;
- $error(Error) (required)
- .
SDLValidationContext::reportError() SDLValidationContext::reportError code WC 10.9.1
public function reportError(Error $error): void
{
$this->errors[] = $error;
}