Skip to content

Commit 4dccee6

Browse files
armetizfabpot
authored andcommitted
[Form] Add missing type hint
1 parent 89c2591 commit 4dccee6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Symfony\Component\Form\Exception\UnexpectedTypeException;
1515
use Doctrine\ORM\QueryBuilder;
16+
use Doctrine\ORM\EntityManagerInterface;
1617
use Doctrine\DBAL\Connection;
1718

1819
/**
@@ -33,13 +34,13 @@ class ORMQueryBuilderLoader implements EntityLoaderInterface
3334
/**
3435
* Construct an ORM Query Builder Loader
3536
*
36-
* @param QueryBuilder|\Closure $queryBuilder
37-
* @param EntityManager $manager
38-
* @param string $class
37+
* @param QueryBuilder|\Closure $queryBuilder
38+
* @param EntityManagerInterface $manager
39+
* @param string $class
3940
*
4041
* @throws UnexpectedTypeException
4142
*/
42-
public function __construct($queryBuilder, $manager = null, $class = null)
43+
public function __construct($queryBuilder, EntityManagerInterface $manager = null, $class = null)
4344
{
4445
// If a query builder was passed, it must be a closure or QueryBuilder
4546
// instance

0 commit comments

Comments
 (0)