merged branch armetiz/master (PR #8045)
This PR was squashed before being merged into the master branch (closes #8045).
Discussion
----------
[Form] Add missing type hint
Commits
-------
4dccee6
[Form] Add missing type hint
This commit is contained in:
commit
a6dd5db60d
@ -13,6 +13,7 @@ namespace Symfony\Bridge\Doctrine\Form\ChoiceList;
|
|||||||
|
|
||||||
use Symfony\Component\Form\Exception\UnexpectedTypeException;
|
use Symfony\Component\Form\Exception\UnexpectedTypeException;
|
||||||
use Doctrine\ORM\QueryBuilder;
|
use Doctrine\ORM\QueryBuilder;
|
||||||
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\DBAL\Connection;
|
use Doctrine\DBAL\Connection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -33,13 +34,13 @@ class ORMQueryBuilderLoader implements EntityLoaderInterface
|
|||||||
/**
|
/**
|
||||||
* Construct an ORM Query Builder Loader
|
* Construct an ORM Query Builder Loader
|
||||||
*
|
*
|
||||||
* @param QueryBuilder|\Closure $queryBuilder
|
* @param QueryBuilder|\Closure $queryBuilder
|
||||||
* @param EntityManager $manager
|
* @param EntityManagerInterface $manager
|
||||||
* @param string $class
|
* @param string $class
|
||||||
*
|
*
|
||||||
* @throws UnexpectedTypeException
|
* @throws UnexpectedTypeException
|
||||||
*/
|
*/
|
||||||
public function __construct($queryBuilder, $manager = null, $class = null)
|
public function __construct($queryBuilder, EntityManagerInterface $manager = null, $class = null)
|
||||||
{
|
{
|
||||||
// If a query builder was passed, it must be a closure or QueryBuilder
|
// If a query builder was passed, it must be a closure or QueryBuilder
|
||||||
// instance
|
// instance
|
||||||
|
Reference in New Issue
Block a user