Skip to content

Commit 8024815

Browse files
Make more nullable types explicit
1 parent 3cbacef commit 8024815

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Authentication/AuthenticationTrustResolverInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
2020
*
21-
* @method bool isAuthenticated(TokenInterface $token = null)
21+
* @method bool isAuthenticated(?TokenInterface $token = null)
2222
*/
2323
interface AuthenticationTrustResolverInterface
2424
{

Authorization/AccessDecisionManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class AccessDecisionManager implements AccessDecisionManagerInterface
6868
*
6969
* @throws \InvalidArgumentException
7070
*/
71-
public function __construct(iterable $voters = [], /* AccessDecisionStrategyInterface */ $strategy = null)
71+
public function __construct(iterable $voters = [], /* ?AccessDecisionStrategyInterface */ $strategy = null)
7272
{
7373
$this->voters = $voters;
7474
if (\is_string($strategy)) {

0 commit comments

Comments
 (0)