Skip to content

Commit

Permalink
Merge pull request #162 from maximehuran/feature/correct-deprecated
Browse files Browse the repository at this point in the history
Correct deprecated in response
  • Loading branch information
maximehuran authored Jul 10, 2023
2 parents ac3c2ae + cd4a61e commit 5bbcf12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Search/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use MonsieurBiz\SyliusSearchPlugin\Search\Request\RequestConfiguration;
use Pagerfanta\Adapter\AdapterInterface;
use Pagerfanta\Pagerfanta;
use Traversable;

class Response implements ResponseInterface
{
Expand Down Expand Up @@ -50,12 +51,12 @@ public function __construct(
$this->buildFilters();
}

public function getIterator()
public function getIterator(): Traversable
{
return $this->getPaginator();
}

public function count()
public function count(): int
{
return $this->getPaginator()->getNbResults();
}
Expand Down

0 comments on commit 5bbcf12

Please sign in to comment.