Skip to content

Commit

Permalink
Fix tags auto-configuration for faker providers (#960) (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabic131 authored and theofidry committed Oct 18, 2018
1 parent 9c730ed commit cfb8154
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private function loadServices(ContainerBuilder $container)

// Check if the auto-configuration of the tag is not already done. This is a temporary measure to avoid to break
// existing versions of HautelookAliceBundle
if (0 === count($container->findTaggedServiceIds('nelmio_alice.faker.provider'))) {
if ([] !== $container->findTaggedServiceIds('nelmio_alice.faker.provider')) {
$container->registerForAutoconfiguration(BaseFakerProvider::class)->addTag('nelmio_alice.faker.provider');
}
}
Expand Down

0 comments on commit cfb8154

Please sign in to comment.