Skip to content

Commit f9f7c87

Browse files
author
Julien Brochet
committed
fixed condition
1 parent cacd7c6 commit f9f7c87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Controller/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function getUser()
180180

181181
$token = $this->container->get('security.context')->getToken();
182182

183-
return null === $token ?: $token->getUser();
183+
return null === $token ? null : $token->getUser();
184184
}
185185

186186
/**

0 commit comments

Comments
 (0)