You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #48793 Leverage arrow function syntax for closure (tigitz)
This PR was merged into the 6.3 branch.
Discussion
----------
Leverage arrow function syntax for closure
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | no
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets | Fix #47658 <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead -->
| License | MIT
| Doc PR | <!-- required for new features -->
Rationale in the RFC [here](https://wiki.php.net/rfc/arrow_functions_v2#introduction)
It's also notable that using arrow function syntax rather than the classic one has been enforced in the past by symfony core member: symfony/symfony#48069 (comment)
So this PR would be consistent.
Commits
-------
f5802d3a2a Leverage arrow function syntax for closure
return'Authentication failed; Some badges marked as required by the firewall config are not available on the passport: "'.CsrfTokenBadge::class.'".' === $exception->getMessage();
151
-
}));
149
+
$authenticator->expects($this->once())->method('onAuthenticationFailure')->with($this->anything(), $this->callback(fn ($exception) => 'Authentication failed; Some badges marked as required by the firewall config are not available on the passport: "'.CsrfTokenBadge::class.'".' === $exception->getMessage()));
0 commit comments