Skip to content

Commit

Permalink
Allow null as return type for find
Browse files Browse the repository at this point in the history
  • Loading branch information
fabwu committed May 31, 2018
1 parent 12b9090 commit c0002fc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -374,7 +374,7 @@ final class PostRepository
$this->postSorter = $postSorter;
}

public function find(int $id): Post
public function find(int $id): ?Post
{
return $this->repository->find($id);
}
Expand Down

0 comments on commit c0002fc

Please sign in to comment.