Skip to content

Commit 6e2e13c

Browse files
[10.x] Update events.md (specify correct types_ (#9084)
Specify correct types
1 parent 0f54c00 commit 6e2e13c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

events.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,12 +553,12 @@ Event subscribers are classes that may subscribe to multiple events from within
553553
/**
554554
* Handle user login events.
555555
*/
556-
public function handleUserLogin(string $event): void {}
556+
public function handleUserLogin(Login $event): void {}
557557

558558
/**
559559
* Handle user logout events.
560560
*/
561-
public function handleUserLogout(string $event): void {}
561+
public function handleUserLogout(Logout $event): void {}
562562

563563
/**
564564
* Register the listeners for the subscriber.
@@ -592,12 +592,12 @@ If your event listener methods are defined within the subscriber itself, you may
592592
/**
593593
* Handle user login events.
594594
*/
595-
public function handleUserLogin(string $event): void {}
595+
public function handleUserLogin(Login $event): void {}
596596

597597
/**
598598
* Handle user logout events.
599599
*/
600-
public function handleUserLogout(string $event): void {}
600+
public function handleUserLogout(Logout $event): void {}
601601

602602
/**
603603
* Register the listeners for the subscriber.

0 commit comments

Comments
 (0)