Skip to content

Commit

Permalink
correcting return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Vahram1995 committed Sep 12, 2024
1 parent f443c4a commit 230ac41
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions shared/Services/PostService.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,16 @@ public function __init(PostTransformer $transformer)
$this->transformer = $transformer;
}

/**
* Get posts
* @return array
* @throws ConfigException
* @throws DatabaseException
* @throws DiException
* @throws ModelException
* @throws ReflectionException
*/
/**
* Get posts
* @param Request $request
* @return PaginatorInterface
* @throws ConfigException
* @throws DatabaseException
* @throws DiException
* @throws ModelException
* @throws ReflectionException
*/
public function getPosts(Request $request): PaginatorInterface
{
$per_page = $request->get('per_page', 12);
Expand Down

0 comments on commit 230ac41

Please sign in to comment.