diff --git a/cookbook/security/entity_provider.rst b/cookbook/security/entity_provider.rst index 2b5f7a132a8..05df8a39f23 100644 --- a/cookbook/security/entity_provider.rst +++ b/cookbook/security/entity_provider.rst @@ -377,7 +377,7 @@ The code below shows the implementation of the // if there is no record matching the criteria. $user = $q->getSingleResult(); } catch (NoResultException $e) { - throw new UsernameNotFoundException(sprintf('Unable to find an active admin AcmeUserBundle:User object identified by "%s".', $username), null, 0, $e); + throw new UsernameNotFoundException(sprintf('Unable to find an active admin AcmeUserBundle:User object identified by "%s".', $username), 0, $e); } return $user;