Skip to content
Permalink
Browse files

refactor: Fixed logic error

  • Loading branch information...
tarlepp committed May 5, 2019
1 parent b5206cd commit 469f07d95a60067491a10eb282c37dc7aad05eae
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Repository/Traits/LoadUserByUserNameTrait.php
@@ -44,7 +44,7 @@ public function loadUserByUsername($username): ?Entity
{
static $cache = [];
if (!array_key_exists($username, $cache) && getenv('APP_ENV') !== 'test') {
if (!array_key_exists($username, $cache) || getenv('APP_ENV') === 'test') {
// Build query
$query = $this
->createQueryBuilder('u')

0 comments on commit 469f07d

Please sign in to comment.
You can’t perform that action at this time.