Skip to content

Commit 736d095

Browse files
Merge branch '4.3' into 4.4
* 4.3: [Validator] fix access to uninitialized property when getting value [HttpClient] Fix regex bearer [HttpKernel] Fix stale-if-error behavior, add tests Improved error message when no supported user provider is found Properly handle phpunit arguments for configuration file
2 parents 3a872ea + 2b4b863 commit 736d095

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Firewall/ContextListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ protected function refreshUser(TokenInterface $token)
292292
return null;
293293
}
294294

295-
throw new \RuntimeException(sprintf('There is no user provider for user "%s".', $userClass));
295+
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));
296296
}
297297

298298
private function safelyUnserialize(string $serializedToken)

RememberMe/AbstractRememberMeServices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ final protected function getUserProvider(string $class): UserProviderInterface
234234
}
235235
}
236236

237-
throw new UnsupportedUserException(sprintf('There is no user provider that supports class "%s".', $class));
237+
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));
238238
}
239239

240240
/**

0 commit comments

Comments
 (0)