Skip to content

Commit 082655e

Browse files
committed
Fix deauthentication callback setter name
1 parent 5e38d0d commit 082655e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Authentication.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public function &onUserSet(callable $value)
277277
return $this;
278278
}
279279

280-
public function &setOnUserDeauthenticated(callable $value)
280+
public function &onUserDeauthenticated(callable $value)
281281
{
282282
$this->on_user_deauthenticated[] = $value;
283283

src/AuthenticationInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function &onUserSet(callable $value);
110110
* @param callable $value
111111
* @return $this
112112
*/
113-
public function &setOnUserDeauthenticated(callable $value);
113+
public function &onUserDeauthenticated(callable $value);
114114

115115
/**
116116
* Use onUserSet() instead.

test/src/EventsTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ public function testOnUserDeauthenticated()
6868
$authentication = $this->prepareForAuthentication();
6969

7070
$first_callback_called = false;
71-
$authentication->setOnUserDeauthenticated(function () use (&$first_callback_called) {
71+
$authentication->onUserDeauthenticated(function () use (&$first_callback_called) {
7272
$this->validateOnUserDeauthenticatedArguments(func_get_args());
7373

7474
$first_callback_called = true;
7575
});
7676

7777
$secon_callback_called = false;
78-
$authentication->setOnUserDeauthenticated(function () use (&$secon_callback_called) {
78+
$authentication->onUserDeauthenticated(function () use (&$secon_callback_called) {
7979
$this->validateOnUserDeauthenticatedArguments(func_get_args());
8080

8181
$secon_callback_called = true;

0 commit comments

Comments
 (0)