diff --git a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php index eff1245d41fa2..44e306add3e05 100644 --- a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php +++ b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php @@ -263,9 +263,11 @@ public function configureOptions(OptionsResolver $resolver) /** * Return the default loader object. * + * @param mixed $queryBuilder + * * @return EntityLoaderInterface */ - abstract public function getLoader(ObjectManager $manager, QueryBuilder $queryBuilder, string $class); + abstract public function getLoader(ObjectManager $manager, $queryBuilder, string $class); public function getParent() { diff --git a/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php b/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php index 6429ede4ca4ab..716def91026c3 100644 --- a/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php +++ b/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php @@ -46,9 +46,11 @@ public function configureOptions(OptionsResolver $resolver) /** * Return the default loader object. * + * @param QueryBuilder $queryBuilder + * * @return ORMQueryBuilderLoader */ - public function getLoader(ObjectManager $manager, QueryBuilder $queryBuilder, string $class) + public function getLoader(ObjectManager $manager, $queryBuilder, string $class) { if (!$queryBuilder instanceof QueryBuilder) { throw new \TypeError(sprintf('Expected an instance of %s, but got %s.', QueryBuilder::class, \is_object($queryBuilder) ? \get_class($queryBuilder) : \gettype($queryBuilder)));