Skip to content

Commit 5dcb381

Browse files
committed
[Security][Http] Add type-hints
1 parent df07c66 commit 5dcb381

File tree

4 files changed

+1
-14
lines changed

4 files changed

+1
-14
lines changed

src/Symfony/Component/Security/Http/AccessMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class AccessMap implements AccessMapInterface
2929
* @param array $attributes An array of attributes to pass to the access decision manager (like roles)
3030
* @param string|null $channel The channel to enforce (http, https, or null)
3131
*/
32-
public function add(RequestMatcherInterface $requestMatcher, array $attributes = [], ?string $channel = null)
32+
public function add(RequestMatcherInterface $requestMatcher, array $attributes = [], string $channel = null)
3333
{
3434
$this->map[] = [$requestMatcher, $attributes, $channel];
3535
}

src/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationSuccessHandler.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ public function getProviderKey()
8282
return $this->providerKey;
8383
}
8484

85-
/**
86-
* Set the provider key.
87-
*/
8885
public function setProviderKey(string $providerKey)
8986
{
9087
$this->providerKey = $providerKey;

src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ public function registerListener($key, $logoutPath, $csrfTokenId, $csrfParameter
5656
/**
5757
* Generates the absolute logout path for the firewall.
5858
*
59-
* @param string|null $key The firewall key or null to use the current firewall key
60-
*
6159
* @return string The logout path
6260
*/
6361
public function getLogoutPath(?string $key = null)
@@ -68,8 +66,6 @@ public function getLogoutPath(?string $key = null)
6866
/**
6967
* Generates the absolute logout URL for the firewall.
7068
*
71-
* @param string|null $key The firewall key or null to use the current firewall key
72-
*
7369
* @return string The logout URL
7470
*/
7571
public function getLogoutUrl(?string $key = null)

src/Symfony/Component/Security/Http/ParameterBagUtils.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ final class ParameterBagUtils
2929
*
3030
* Paths like foo[bar] will be evaluated to find deeper items in nested data structures.
3131
*
32-
* @param ParameterBag $parameters The parameter bag
33-
* @param string $path The key
34-
*
3532
* @return mixed
3633
*
3734
* @throws InvalidArgumentException when the given path is malformed
@@ -64,9 +61,6 @@ public static function getParameterBagValue(ParameterBag $parameters, string $pa
6461
*
6562
* Paths like foo[bar] will be evaluated to find deeper items in nested data structures.
6663
*
67-
* @param Request $request The request
68-
* @param string $path The key
69-
*
7064
* @return mixed
7165
*
7266
* @throws InvalidArgumentException when the given path is malformed

0 commit comments

Comments
 (0)