Added type hint to Repository constructor
This commit is contained in:
parent
3d2252a688
commit
affc50a2eb
1 changed files with 3 additions and 1 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
namespace FOQ\ElasticaBundle;
|
||||
|
||||
use FOQ\ElasticaBundle\Finder\PaginatedFinderInterface;
|
||||
|
||||
/**
|
||||
* @author Richard Miller <info@limethinking.co.uk>
|
||||
*
|
||||
|
|
@ -12,7 +14,7 @@ class Repository
|
|||
{
|
||||
protected $finder;
|
||||
|
||||
public function __construct($finder)
|
||||
public function __construct(PaginatedFinderInterface $finder)
|
||||
{
|
||||
$this->finder = $finder;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue