More return types

This commit is contained in:
Matias De lellis
2021-09-20 21:39:10 -03:00
parent 53ed22172c
commit af37467128
4 changed files with 5 additions and 5 deletions

View File

@@ -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;
}
}