Skip to content

Commit 753235a

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [Messenger] Fix calls to deprecated DBAL methods Check for null instead of type
2 parents f96a92d + 1a2f814 commit 753235a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Firewall/LogoutListener.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ public function authenticate(RequestEvent $event)
8686
$logoutEvent = new LogoutEvent($request, $this->tokenStorage->getToken());
8787
$this->eventDispatcher->dispatch($logoutEvent);
8888

89-
$response = $logoutEvent->getResponse();
90-
if (!$response instanceof Response) {
89+
if (!$response = $logoutEvent->getResponse()) {
9190
throw new \RuntimeException('No logout listener set the Response, make sure at least the DefaultLogoutListener is registered.');
9291
}
9392

0 commit comments

Comments
 (0)