diff --git a/lib/Controller/AOCSController.php b/lib/Controller/AOCSController.php index 2f1b3dfbf..3ad870fcb 100644 --- a/lib/Controller/AOCSController.php +++ b/lib/Controller/AOCSController.php @@ -36,7 +36,7 @@ public function __construct( * @param Exception|InternalError $e * @return DataResponse */ - protected function handleError(InternalError|Exception $e): DataResponse { + protected function handleError($e): DataResponse { $this->logger->warning('An internal error or exception occurred: ['. $e->getCode() . ']' . $e->getMessage()); return new DataResponse(['message' => $this->n->t('An unexpected error occurred. More details can be found in the logs. Please reach out to your administrator.')], Http::STATUS_INTERNAL_SERVER_ERROR); }