[DoctrineBridge] Removed QueryBuilder type hint in getLoader()
This commit is contained in:
parent
08a8e77991
commit
8621852396
@ -263,9 +263,11 @@ abstract class DoctrineType extends AbstractType implements ResetInterface
|
||||
/**
|
||||
* 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()
|
||||
{
|
||||
|
@ -46,9 +46,11 @@ class EntityType extends DoctrineType
|
||||
/**
|
||||
* 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)));
|
||||
|
Reference in New Issue
Block a user