Skip to content

Commit

Permalink
widen constraint in PaginatorAware
Browse files Browse the repository at this point in the history
  • Loading branch information
garak committed Dec 13, 2020
1 parent f7c7ff4 commit a269a96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Definition/AbstractPaginatorAware.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Knp\Bundle\PaginatorBundle\Definition;

use Knp\Component\Pager\Paginator;
use Knp\Component\Pager\PaginatorInterface;

/**
* This is a base class that can be extended if you're too lazy to implement PaginatorAwareInterface yourself.
Expand All @@ -17,7 +18,7 @@ abstract class AbstractPaginatorAware implements PaginatorAwareInterface
/**
* Sets the KnpPaginator instance.
*/
public function setPaginator(Paginator $paginator): PaginatorAwareInterface
public function setPaginator(PaginatorInterface $paginator): PaginatorAwareInterface
{
$this->paginator = $paginator;

Expand Down

0 comments on commit a269a96

Please sign in to comment.