You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/KernelBrowser.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@ public function loginUser(object $user, string $firewallContext = 'main'): stati
115
115
}
116
116
117
117
if (!$userinstanceof UserInterface) {
118
-
thrownew \LogicException(sprintf('The first argument of "%s" must be instance of "%s", "%s" provided.', __METHOD__, UserInterface::class, \is_object($user) ? \get_class($user) : \gettype($user)));
118
+
thrownew \LogicException(sprintf('The first argument of "%s" must be instance of "%s", "%s" provided.', __METHOD__, UserInterface::class, get_debug_type($user)));
Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/MockHttpClient.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ public function request(string $method, string $url, array $options = []): Respo
81
81
++$this->requestsCount;
82
82
83
83
if (!$responseinstanceof ResponseInterface) {
84
-
thrownewTransportException(sprintf('The response factory passed to MockHttpClient must return/yield an instance of ResponseInterface, "%s" given.', \is_object($response) ? \get_class($response) : \gettype($response)));
84
+
thrownewTransportException(sprintf('The response factory passed to MockHttpClient must return/yield an instance of ResponseInterface, "%s" given.', get_debug_type($response)));
thrownewInvalidArgumentException(sprintf('"%s()" expects being initialized with a Redis, RedisArray, RedisCluster or Predis\ClientInterface, "%s" given.', __METHOD__, \is_object($this->redis) ? \get_class($this->redis) : \gettype($this->redis)));
193
+
thrownewInvalidArgumentException(sprintf('"%s()" expects being initialized with a Redis, RedisArray, RedisCluster or Predis\ClientInterface, "%s" given.', __METHOD__, get_debug_type($this->redis)));
0 commit comments