Skip to content

Commit

Permalink
Merge branch '3.4' into 4.3
Browse files Browse the repository at this point in the history
* 3.4:
  [Validator] fix access to uninitialized property when getting value
  [HttpKernel] Fix stale-if-error behavior, add tests
  Improved error message when no supported user provider is found
  • Loading branch information
nicolas-grekas committed Jan 31, 2020
2 parents 2ea4960 + 7b28a6f commit 2b4b863
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Firewall/ContextListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ protected function refreshUser(TokenInterface $token)
return null;
}

throw new \RuntimeException(sprintf('There is no user provider for user "%s".', $userClass));
throw new \RuntimeException(sprintf('There is no user provider for user "%s". Shouldn\'t the "supportsClass()" method of your user provider return true for this classname?', $userClass));
}

private function safelyUnserialize($serializedToken)
Expand Down
2 changes: 1 addition & 1 deletion RememberMe/AbstractRememberMeServices.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ final protected function getUserProvider($class)
}
}

throw new UnsupportedUserException(sprintf('There is no user provider that supports class "%s".', $class));
throw new UnsupportedUserException(sprintf('There is no user provider for user "%s". Shouldn\'t the "supportsClass()" method of your user provider return true for this classname?', $class));
}

/**
Expand Down

0 comments on commit 2b4b863

Please sign in to comment.