diff --git a/src/Controller/ViewerController.php b/src/Controller/ViewerController.php index ceb51c80..c0ec8992 100644 --- a/src/Controller/ViewerController.php +++ b/src/Controller/ViewerController.php @@ -70,7 +70,7 @@ public function showTransactionAction(Reader $reader, string $hash): Response } #[Route(path: '/audit/{entity}/{id}', name: 'dh_auditor_show_entity_history', methods: ['GET'])] - public function showEntityHistoryAction(Request $request, Reader $reader, string $entity, int|string $id = null): Response + public function showEntityHistoryAction(Request $request, Reader $reader, string $entity, int|string|null $id = null): Response { \assert(\is_string($request->query->get('page', '1')) || \is_int($request->query->get('page', '1'))); $page = (int) $request->query->get('page', '1');