mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +01:00
More return types
This commit is contained in:
@@ -150,7 +150,7 @@ class NoteService {
|
||||
public function get(string $userId, int $id): ?Note {
|
||||
try {
|
||||
return $this->notemapper->find($id, $userId);
|
||||
} catch(Exception $e) {
|
||||
} catch(DoesNotExistException $e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user