Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Longosz <[email protected]>
  • Loading branch information
vidarl and alongosz authored Sep 6, 2023
1 parent 5c91a54 commit 4e1746f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function onSiteAccessMatch(PostSiteAccessMatchEvent $event)
$session = $request->getSession();
}

if (!$session || $event->getRequestType() !== HttpKernelInterface::MAIN_REQUEST) {
if (null === $session || $event->getRequestType() !== HttpKernelInterface::MAIN_REQUEST) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function testOnSiteAccessMatchNewSessionName()
$this->listener->onSiteAccessMatch($event);
}

public function testOnSiteAccessMatchNoSession()
public function testOnSiteAccessMatchNoSession(): void
{
$request = new Request();

Expand Down

0 comments on commit 4e1746f

Please sign in to comment.