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
if (!is_a($error, ProblemExceptionInterface::class, true)) {
886
-
$this->logger?->warning(\sprintf('The error class "%s" does not implement "%s". Did you forget a use statement?', $error, ProblemExceptionInterface::class));
885
+
thrownewRuntimeException(\sprintf('The error class "%s" does not implement "%s". Did you forget a use statement?', $error, ProblemExceptionInterface::class));
887
886
}
888
887
889
888
$status = null;
890
889
$description = null;
891
890
try {
892
-
/** @var ProblemExceptionInterface */
891
+
/** @var ProblemExceptionInterface $exception */
893
892
$exception = (new \ReflectionClass($error))->newInstanceWithoutConstructor();
'The error class %s has no status defined, please either implement ProblemExceptionInterface, or make it an ErrorResource with a status',
916
-
$error
917
-
));
918
-
continue;
910
+
thrownewRuntimeException(\sprintf('The error class %s has no status defined, please either implement ProblemExceptionInterface, or make it an ErrorResource with a status', $error));
0 commit comments