From 4dccee61c7aa8902f48a54893c648acdf20474cd Mon Sep 17 00:00:00 2001 From: Thomas Tourlourat Date: Wed, 15 May 2013 11:08:10 +0200 Subject: [PATCH] [Form] Add missing type hint --- .../Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php index ef9eb14bf5..c801240a89 100644 --- a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php +++ b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php @@ -13,6 +13,7 @@ namespace Symfony\Bridge\Doctrine\Form\ChoiceList; use Symfony\Component\Form\Exception\UnexpectedTypeException; use Doctrine\ORM\QueryBuilder; +use Doctrine\ORM\EntityManagerInterface; use Doctrine\DBAL\Connection; /** @@ -33,13 +34,13 @@ class ORMQueryBuilderLoader implements EntityLoaderInterface /** * Construct an ORM Query Builder Loader * - * @param QueryBuilder|\Closure $queryBuilder - * @param EntityManager $manager - * @param string $class + * @param QueryBuilder|\Closure $queryBuilder + * @param EntityManagerInterface $manager + * @param string $class * * @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 // instance