Skip to content

Commit deaa4a8

Browse files
authored
Changed return type to void for Hyperf\Event\Contract\ListenerInterface::process(). (#4611)
1 parent aa59c41 commit deaa4a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Listener/RegisterProtocolListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function listen(): array
3737
* All official rpc protocols should register in here,
3838
* and the others non-official protocols should register in their own component via listener.
3939
*/
40-
public function process(object $event)
40+
public function process(object $event): void
4141
{
4242
$this->protocolManager->register(Constant::PROTOCOL_DEFAULT, [
4343
'packer' => JsonPacker::class,

src/Listener/RegisterServiceListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function listen(): array
3535
*
3636
* @param AfterPathRegister $event
3737
*/
38-
public function process(object $event)
38+
public function process(object $event): void
3939
{
4040
$annotation = $event->annotation;
4141
if (! in_array($annotation->protocol, $this->getProtocols(), true)) {

0 commit comments

Comments
 (0)