10000 merged branch armetiz/master (PR #8045) · symfony/symfony@a6dd5db · GitHub
[go: up one dir, main page]

Skip to content

Commit a6dd5db

Browse files
committed
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
2 parents da6f190 + 4dccee6 commit a6dd5db

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)
0