diff --git a/inc/Data/ReportQueries.php b/inc/Data/ReportQueries.php index 066741ae..6dd24c3b 100644 --- a/inc/Data/ReportQueries.php +++ b/inc/Data/ReportQueries.php @@ -142,7 +142,7 @@ class ReportQueries { * @param int $id The id of the report to fetch. * @return ?array An array of the given report with the `board` and `ip` fields. Null if no such report exists. */ - public function getReportById(int $id): array { + public function getReportById(int $id): ?array { $query = prepare('SELECT `board`, `ip` FROM ``reports`` WHERE `id` = :id'); $query->bindValue(':id', $id); $query->execute();