Skip to content

Commit

Permalink
fix php 7.4 backwards compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com>
  • Loading branch information
Florian Steffens committed Oct 30, 2023
1 parent e9b6f30 commit 6024a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/AOCSController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(
* @param Exception|InternalError $e
* @return DataResponse<Http::STATUS_INTERNAL_SERVER_ERROR, array{message: string}, array{}>
*/
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);
}
Expand Down

0 comments on commit 6024a97

Please sign in to comment.