8000 minor #41761 [DependencyInjection] fix accepted types on FactoryTrait… · symfony/symfony@b62881c · GitHub
[go: up one dir, main page]

Skip to content

Commit b62881c

Browse files
minor #41761 [DependencyInjection] fix accepted types on FactoryTrait::factory() (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [DependencyInjection] fix accepted types on FactoryTrait::factory() | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Fix #41733 | License | MIT | Doc PR | - Commits ------- 67fae67 [DependencyInjection] fix accepted types on FactoryTrait::factory()
2 parents 79a87cb + 67fae67 commit b62881c

File tree

1 file changed

+2
-1
lines changed
  • src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits

1 file changed

+2
-1
lines changed

src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/FactoryTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
namespace Symfony\Component\DependencyInjection\Loader\Configurator\Traits;
1313

1414
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
15+
use Symfony\Component\DependencyInjection\Loader\Configurator\ReferenceConfigurator;
1516

1617
trait FactoryTrait
1718
{
1819
/**
1920
* Sets a factory.
2021
*
21-
* @param string|array $factory A PHP callable reference
22+
* @param string|array|ReferenceConfigurator $factory A PHP callable reference
2223
*
2324
* @return $this
2425
*/

0 commit comments

Comments
 (0)
0