Skip to content

Commit 0112280

Browse files
committed
Leverage array_is_list(), get_debug_type(), is_countable(), is_iterable(), str_contains() and str_starts_with()
1 parent ff81dcf commit 0112280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

KernelBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function loginUser(object $user, string $firewallContext = 'main'): stati
115115
}
116116

117117
if (!$user instanceof UserInterface) {
118-
throw new \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+
throw new \LogicException(sprintf('The first argument of "%s" must be instance of "%s", "%s" provided.', __METHOD__, UserInterface::class, get_debug_type($user)));
119119
}
120120

121121
$token = new TestBrowserToken($user->getRoles(), $user, $firewallContext);

0 commit comments

Comments
 (0)