Skip to content

Commit

Permalink
bug #48160 Adding missing argument to sprintf (weaverryan)
Browse files Browse the repository at this point in the history
This PR was merged into the 6.2 branch.

Discussion
----------

Adding missing argument to sprintf

| Q             | A
| ------------- | ---
| Branch?       | 6.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | None
| License       | MIT
| Doc PR        | Not needed

Hi!

Swooping in at the last moment to be part of the wonderful 6.2 release.

Cheers!

Commits
-------

255eecd Adding missing argument to sprintf
  • Loading branch information
chalasr committed Nov 8, 2022
2 parents fe45041 + 255eecd commit b02a689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Bundle/SecurityBundle/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private function getAuthenticator(?string $authenticatorName, string $firewallNa
$authenticatorId = 'security.authenticator.'.$authenticatorName.'.'.$firewallName;

if (!$firewallAuthenticatorLocator->has($authenticatorId)) {
throw new LogicException(sprintf('Unable to find an authenticator named "%s" for the firewall "%s". Available authenticators: "%s".', $authenticatorName, implode('", "', array_keys($firewallAuthenticatorLocator->getProvidedServices()))));
throw new LogicException(sprintf('Unable to find an authenticator named "%s" for the firewall "%s". Available authenticators: "%s".', $authenticatorName, $firewallName, implode('", "', array_keys($firewallAuthenticatorLocator->getProvidedServices()))));
}

return $firewallAuthenticatorLocator->get($authenticatorId);
Expand Down

0 comments on commit b02a689

Please sign in to comment.