We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 742e8d1 commit 011eda5Copy full SHA for 011eda5
src/UserAuth.php
@@ -65,7 +65,7 @@ public function build(): static
65
throw new TokenInvalidException();
66
}
67
68
- public function check(): void
+ public function check(): static
69
{
70
$userId = $this->build()->getId();
71
@@ -76,6 +76,8 @@ public function check(): void
76
77
78
$this->setUser($user);
79
+
80
+ return $this;
81
82
83
public static function load(string $token): static
0 commit comments