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
thrownew \InvalidArgumentException('$class must not be empty.');
39
+
if (\func_num_args() > 4) {
40
+
if (\func_num_args() < 6 || func_get_arg(5)) {
41
+
trigger_deprecation('symfony/security-core', '7.4', 'Passing a user FQCN to %s() is deprecated. The user class will be removed from the remember-me cookie in 8.0.', __CLASS__, __NAMESPACE__);
42
+
}
43
+
44
+
if (!\is_string($userIdentifier)) {
45
+
thrownew \TypeError(\sprintf('Argument 1 passed to "%s()" must be a string, "%s" given.', __METHOD__, get_debug_type($userIdentifier)));
46
+
}
47
+
48
+
$this->class = $userIdentifier;
49
+
$userIdentifier = $series;
50
+
$series = $tokenValue;
51
+
$tokenValue = $lastUsed;
52
+
53
+
if (\func_num_args() <= 4) {
54
+
thrownew \TypeError(\sprintf('Argument 5 passed to "%s()" must be an instance of "%s", the argument is missing.', __METHOD__, \DateTimeInterface::class));
55
+
}
56
+
57
+
$lastUsed = func_get_arg(4);
58
+
}
59
+
60
+
if (!\is_string($userIdentifier)) {
61
+
thrownew \TypeError(\sprintf('The $userIdentifier argument passed to "%s()" must be a string, "%s" given.', __METHOD__, get_debug_type($userIdentifier)));
32
62
}
63
+
64
+
if (!\is_string($series)) {
65
+
thrownew \TypeError(\sprintf('The $series argument passed to "%s()" must be a string, "%s" given.', __METHOD__, get_debug_type($series)));
66
+
}
67
+
68
+
if (!\is_string($tokenValue)) {
69
+
thrownew \TypeError(\sprintf('The $tokenValue argument passed to "%s()" must be a string, "%s" given.', __METHOD__, get_debug_type($tokenValue)));
70
+
}
71
+
72
+
if (!$lastUsedinstanceof \DateTimeInterface) {
73
+
thrownew \TypeError(\sprintf('The $lastUsed argument passed to "%s()" must be an instance of "%s", "%s" given.', __METHOD__, \DateTimeInterface::class, get_debug_type($lastUsed)));
74
+
}
75
+
33
76
if ('' === $userIdentifier) {
34
77
thrownew \InvalidArgumentException('$userIdentifier must not be empty.');
35
78
}
@@ -40,6 +83,9 @@ public function __construct(
40
83
thrownew \InvalidArgumentException('$tokenValue must not be empty.');
@@ -52,7 +98,7 @@ public function getClass(bool $triggerDeprecation = true): string
52
98
trigger_deprecation('symfony/security-core', '7.4', 'The "%s()" method is deprecated: the user class will be removed from the remember-me cookie in 8.0.', __METHOD__);
0 commit comments