[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

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
*/