Skip to content

Commit a12040d

Browse files
committed
Implement fluent interface on RememberMeBadge::disable()
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent f731403 commit a12040d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Authenticator/Passport/Badge/RememberMeBadge.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,14 @@ public function enable(): self
4747
*
4848
* The default is disabled, this can be called to suppress creation
4949
* after it was enabled.
50+
*
51+
* @return $this
5052
*/
51-
public function disable(): void
53+
public function disable(): self
5254
{
5355
$this->enabled = false;
56+
57+
return $this;
5458
}
5559

5660
public function isEnabled(): bool

0 commit comments

Comments
 (0)