Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jenky committed Mar 10, 2024
1 parent 6f07bd7 commit a4d9795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Post/PostResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class PostResource extends ResourceBuilder
public function get(?int $page = null, ?int $limit = null): PostCollection|ErrorResponse
{
$userId = $this->refs[UserResource::class] ?? null;
$request = $userId ? new GetUserPostsRequest($userId) : new GetPostsRequest();
$request = $userId ? new GetUserPostsRequest((int) $userId) : new GetPostsRequest();

if ($page) {
$request = $request->page($page);
Expand Down

0 comments on commit a4d9795

Please sign in to comment.