Skip to content

Commit 2af1350

Browse files
committed
minor #57307 [SecurityBundle] Adds space in FirewallTraits error message (mvhirsch)
This PR was merged into the 5.4 branch. Discussion ---------- [SecurityBundle] Adds space in `FirewallTrait`s error message | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? |no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | | License | MIT I just hit that error while debugging my application. I wondered why it was written like this: ``` [...] found for this firewall.Did you forget to add a [...] ``` Note that missing whitespace after dot. I'm sorry for being picky, but it hurt my eyes 🙈 Commits ------- 87b4904ba7 add space in error message
2 parents d977faa + 22157c5 commit 2af1350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Security/FirewallAwareTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private function getForFirewall(): object
4141
if (!$this->locator->has($firewallName)) {
4242
$message = 'No '.$serviceIdentifier.' found for this firewall.';
4343
if (\defined(static::class.'::FIREWALL_OPTION')) {
44-
$message .= sprintf('Did you forget to add a "'.static::FIREWALL_OPTION.'" key under your "%s" firewall?', $firewallName);
44+
$message .= sprintf(' Did you forget to add a "'.static::FIREWALL_OPTION.'" key under your "%s" firewall?', $firewallName);
4545
}
4646

4747
throw new \LogicException($message);

0 commit comments

Comments
 (0)