Skip to content

Commit 8e12b1f

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [Console] Restore psr/log >= 3.0 conflict [Security] Make the abstract Voter class implement CacheableVoterInterface Add generic types to traversable implementations [Security] Fix TypeError message [Security] Fix deprecation layer [FrameworkBundle] Add completion for workflow:dump Fix cancel button Fix misleading error on missing provider with authenticator manager Don't limit retries of toolbar loading
2 parents 44a6d77 + ffb5c26 commit 8e12b1f

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Firewall.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
namespace Symfony\Component\Security\Http;
1313

1414
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
15+
use Symfony\Component\HttpFoundation\Request;
1516
use Symfony\Component\HttpKernel\Event\FinishRequestEvent;
1617
use Symfony\Component\HttpKernel\Event\RequestEvent;
1718
use Symfony\Component\HttpKernel\KernelEvents;
19+
use Symfony\Component\Security\Http\Firewall\ExceptionListener;
1820
use Symfony\Component\Security\Http\Firewall\FirewallListenerInterface;
1921
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
2022

@@ -32,6 +34,10 @@ class Firewall implements EventSubscriberInterface
3234
{
3335
private FirewallMapInterface $map;
3436
private EventDispatcherInterface $dispatcher;
37+
38+
/**
39+
* @var \SplObjectStorage<Request, ExceptionListener>
40+
*/
3541
private \SplObjectStorage $exceptionListeners;
3642

3743
public function __construct(FirewallMapInterface $map, EventDispatcherInterface $dispatcher)

Firewall/ContextListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class ContextListener extends AbstractListener
5353
private ?\Closure $sessionTrackerEnabler;
5454

5555
/**
56-
* @param iterable|UserProviderInterface[] $userProviders
56+
* @param iterable<int, UserProviderInterface> $userProviders
5757
*/
5858
public function __construct(TokenStorageInterface $tokenStorage, iterable $userProviders, string $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null, AuthenticationTrustResolverInterface $trustResolver = null, callable $sessionTrackerEnabler = null)
5959
{

FirewallMapInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
namespace Symfony\Component\Security\Http;
1313

1414
use Symfony\Component\HttpFoundation\Request;
15+
use Symfony\Component\Security\Http\Firewall\ExceptionListener;
16+
use Symfony\Component\Security\Http\Firewall\LogoutListener;
1517

1618
/**
1719
* This interface must be implemented by firewall maps.
@@ -33,7 +35,7 @@ interface FirewallMapInterface
3335
* If there is no logout listener, the third element of the outer array
3436
* must be null.
3537
*
36-
* @return array of the format [[AuthenticationListener], ExceptionListener, LogoutListener]
38+
* @return array{list<callable>, ExceptionListener, LogoutListener}
3739
*/
3840
public function getListeners(Request $request);
3941
}

0 commit comments

Comments
 (0)