Skip to content

Commit 6acff3b

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [Console] Restore psr/log >= 3.0 conflict [Security] Make the abstract Voter class implement CacheableVoterInterface Add generic types to traversable implementations [Security] Fix TypeError message [Security] Fix deprecation layer [FrameworkBundle] Add completion for workflow:dump Fix cancel button Fix misleading error on missing provider with authenticator manager Don't limit retries of toolbar loading
2 parents 83c986a + d6e26c7 commit 6acff3b

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

DependencyInjection/MainConfiguration.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class MainConfiguration implements ConfigurationInterface
4040
private array $userProviderFactories;
4141

4242
/**
43-
* @param AuthenticatorFactoryInterface[] $factories
43+
* @param array<int, AuthenticatorFactoryInterface> $factories
4444
*/
4545
public function __construct(array $factories, array $userProviderFactories)
4646
{
@@ -187,6 +187,9 @@ private function addAccessControlSection(ArrayNodeDefinition $rootNode)
187187
;
188188
}
189189

190+
/**
191+
* @param array<int, AuthenticatorFactoryInterface> $factories
192+
*/
190193
private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $factories)
191194
{
192195
$firewallNodeBuilder = $rootNode

DependencyInjection/SecurityExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ private function getUserProvider(ContainerBuilder $container, string $id, array
615615
return 'security.user_providers';
616616
}
617617

618-
throw new InvalidConfigurationException(sprintf('Not configuring explicitly the provider for the "%s" listener on "%s" firewall is ambiguous as there is more than one registered provider.', $factoryKey, $id));
618+
throw new InvalidConfigurationException(sprintf('Not configuring explicitly the provider for the "%s" %s on "%s" firewall is ambiguous as there is more than one registered provider.', $factoryKey, $this->authenticatorManagerEnabled ? 'authenticator' : 'listener', $id));
619619
}
620620

621621
private function createHashers(array $hashers, ContainerBuilder $container)
@@ -958,7 +958,7 @@ private function isValidIp(string $cidr): bool
958958
}
959959

960960
/**
961-
* @return AuthenticatorFactoryInterface[]
961+
* @return array<int, AuthenticatorFactoryInterface>
962962
*/
963963
private function getSortedFactories(): array
964964
{

Tests/DependencyInjection/SecurityExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function testPerListenerProvider()
166166
public function testMissingProviderForListener()
167167
{
168168
$this->expectException(InvalidConfigurationException::class);
169-
$this->expectExceptionMessage('Not configuring explicitly the provider for the "http_basic" listener on "ambiguous" firewall is ambiguous as there is more than one registered provider.');
169+
$this->expectExceptionMessage('Not configuring explicitly the provider for the "http_basic" authenticator on "ambiguous" firewall is ambiguous as there is more than one registered provider.');
170170
$container = $this->getRawContainer();
171171
$container->loadFromExtension('security', [
172172
'enable_authenticator_manager' => true,

0 commit comments

Comments
 (0)