[DependencyInjection] fix accepted types on FactoryTrait::factory()

This commit is contained in:
Nicolas Grekas 2021-06-21 14:28:32 +02:00
parent ffb0d2d424
commit 67fae67a9a
1 changed files with 2 additions and 1 deletions

View File

@ -12,13 +12,14 @@
namespace Symfony\Component\DependencyInjection\Loader\Configurator\Traits;
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\DependencyInjection\Loader\Configurator\ReferenceConfigurator;
trait FactoryTrait
{
/**
* Sets a factory.
*
* @param string|array $factory A PHP callable reference
* @param string|array|ReferenceConfigurator $factory A PHP callable reference
*
* @return $this
*/