Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8ab59cb

Browse files
author
GDIBass
committed
Updated if statement
1 parent 324c208 commit 8ab59cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Workflow/EventListener/GuardListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private function getVariables(GuardEvent $event)
5656
{
5757
$token = $this->tokenStorage->getToken();
5858

59-
if ($token == null) {
59+
if (null === $token) {
6060
$token = new AnonymousToken('secret', 'anon', array());
6161
$this->tokenStorage->setToken($token);
6262
}

0 commit comments

Comments
 (0)