Skip to content

Commit

Permalink
Fixed type error
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Apr 22, 2022
1 parent 0401f02 commit c410683
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Listener/DbQueryExecutedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function listen(): array
/**
* @param QueryExecuted $event
*/
public function process(object $event)
public function process(object $event): void
{
if ($event instanceof QueryExecuted) {
$sql = $event->sql;
Expand Down
2 changes: 1 addition & 1 deletion installer/resources/async_queue/QueueHandleListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function listen(): array
];
}

public function process(object $event)
public function process(object $event): void
{
if ($event instanceof Event && $event->message->job()) {
$job = $event->message->job();
Expand Down

0 comments on commit c410683

Please sign in to comment.