Skip to content

Commit a182ee1

Browse files
update mongolid dependency
1 parent b4a8e63 commit a182ee1

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

composer.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/LaravelEventTrigger.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ class LaravelEventTrigger implements EventTriggerInterface
1212
{
1313
/**
1414
* Laravel's Event dispatcher.
15-
*
16-
* @var \Illuminate\Contracts\Events\Dispatcher
1715
*/
18-
protected $dispatcher;
16+
protected Dispatcher $dispatcher;
1917

2018
/**
2119
* Injects a Laravel's event dispatcher instance.
@@ -39,12 +37,13 @@ public function __construct(Dispatcher $dispatcher)
3937
*
4038
* @return mixed Event handler return. The importance of this return is determined by $halt
4139
*/
42-
public function fire(string $event, $payload, bool $halt)
40+
public function fire(string $event, mixed $payload, bool $halt): mixed
4341
{
4442
if (method_exists($this->dispatcher, 'fire')) {
4543
return $this->dispatcher->fire($event, $payload, $halt);
4644
}
45+
$this->dispatcher->dispatch($event, $payload, $halt);
4746

48-
return $this->dispatcher->dispatch($event, $payload, $halt);
47+
return true;
4948
}
5049
}

0 commit comments

Comments
 (0)