Skip to content

Commit 2db276f

Browse files
committed
added type-hint
1 parent 972c6c7 commit 2db276f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Templating/Helper/SecurityHelper.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use Symfony\Component\Security\Acl\Voter\FieldVote;
1515
use Symfony\Component\Templating\Helper\Helper;
16-
use Symfony\Component\Security\Core\SecurityContextInterface;
1716
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
1817

1918
/**
@@ -25,12 +24,7 @@ class SecurityHelper extends Helper
2524
{
2625
private $securityChecker;
2726

28-
/**
29-
* @param SecurityContextInterface|AuthorizationCheckerInterface
30-
*
31-
* Passing a SecurityContextInterface as a first argument was deprecated in 2.7 and will be removed in 3.0
32-
*/
33-
public function __construct($securityChecker = null)
27+
public function __construct(AuthorizationCheckerInterface $securityChecker = null)
3428
{
3529
$this->securityChecker = $securityChecker;
3630
}

0 commit comments

Comments
 (0)