You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Allow customizing validation rules per operation:
409
410
$rules = $config->getValidationRules();
410
411
if (is_callable($rules)) {
411
412
$rules = $rules($params, $document, $operation);
412
413
if (!is_array($rules)) {
413
-
thrownew\LogicException(sprintf("Expecting validation rules to be array or callable returning array, but got: %s", Utils::printSafe($rules)));
414
+
thrownewRequestError(sprintf("Expecting validation rules to be array or callable returning array, but got: %s", Utils::printSafe($rules)));
414
415
}
415
416
}
416
417
@@ -431,7 +432,7 @@ protected function loadPersistedQuery(ServerConfig $config, OperationParams $par
431
432
432
433
$source = $loader($params->queryId, $params);
433
434
if (!is_string($source) && !$sourceinstanceof DocumentNode) {
434
-
thrownew\LogicException(sprintf('The persisted query loader must return query string or instance of %s but got: %s.', DocumentNode::class, Utils::printSafe($source)));
435
+
thrownewRequestError(sprintf('The persisted query loader must return query string or instance of %s but got: %s.', DocumentNode::class, Utils::printSafe($source)));
0 commit comments