Skip to content

Commit 36a82ce

Browse files
feature #50842 Add missing return types to magic methods (wouterj)
This PR was merged into the 6.4 branch. Discussion ---------- Add missing return types to magic methods | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | yes | Tickets | - | License | MIT | Doc PR | - I promise, these 72 methods really are the last methods that did not have a return type already 🙃 Commits ------- 6b270010c4 Add missing return types to magic methods
2 parents fc5b2f2 + cf12cbd commit 36a82ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Authenticator/Debug/TraceableAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function getAuthenticator(): AuthenticatorInterface
9797
return $this->authenticator;
9898
}
9999

100-
public function __call($method, $args)
100+
public function __call($method, $args): mixed
101101
{
102102
return $this->authenticator->{$method}(...$args);
103103
}

Firewall/AbstractListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
abstract class AbstractListener implements FirewallListenerInterface
2222
{
23-
final public function __invoke(RequestEvent $event)
23+
final public function __invoke(RequestEvent $event): void
2424
{
2525
if (false !== $this->supports($event->getRequest())) {
2626
$this->authenticate($event);

0 commit comments

Comments
 (0)