Skip to content

Commit 26df83c

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: fixed CS [HttpKernel] Remove TestEventDispatcher.
2 parents 3e4b6fd + 15c29c5 commit 26df83c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Firewall/SimpleFormAuthenticationListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected function attemptAuthentication(Request $request)
9797
$password = ParameterBagUtils::getRequestParameterValue($request, $this->options['password_parameter']);
9898
}
9999

100-
if (!\is_string($username) && (!\is_object($username) || !\method_exists($username, '__toString'))) {
100+
if (!\is_string($username) && (!\is_object($username) || !method_exists($username, '__toString'))) {
101101
throw new BadRequestHttpException(sprintf('The key "%s" must be a string, "%s" given.', $this->options['username_parameter'], \gettype($username)));
102102
}
103103

Firewall/UsernamePasswordFormAuthenticationListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function attemptAuthentication(Request $request)
8585
$password = ParameterBagUtils::getRequestParameterValue($request, $this->options['password_parameter']);
8686
}
8787

88-
if (!\is_string($username) && (!\is_object($username) || !\method_exists($username, '__toString'))) {
88+
if (!\is_string($username) && (!\is_object($username) || !method_exists($username, '__toString'))) {
8989
throw new BadRequestHttpException(sprintf('The key "%s" must be a string, "%s" given.', $this->options['username_parameter'], \gettype($username)));
9090
}
9191

0 commit comments

Comments
 (0)