Skip to content

Commit 8a60014

Browse files
wouterjnicolas-grekas
authored andcommitted
Add PHP types to private methods and functions
1 parent 04f3f50 commit 8a60014

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Authenticator/JsonLoginAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function setTranslator(TranslatorInterface $translator)
136136
$this->translator = $translator;
137137
}
138138

139-
private function getCredentials(Request $request)
139+
private function getCredentials(Request $request): array
140140
{
141141
$data = json_decode($request->getContent());
142142
if (!$data instanceof \stdClass) {

Firewall/AccessListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function authenticate(RequestEvent $event)
8686
}
8787
}
8888

89-
private function createAccessDeniedException(Request $request, array $attributes)
89+
private function createAccessDeniedException(Request $request, array $attributes): AccessDeniedException
9090
{
9191
$exception = new AccessDeniedException();
9292
$exception->setAttributes($attributes);

0 commit comments

Comments
 (0)