Skip to content

Commit 47e5db4

Browse files
committed
Cs Fix
1 parent f530150 commit 47e5db4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Trigger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function clearCurrent()
214214
/**
215215
* Bind events.
216216
*/
217-
public function on(string $table, array|string $eventType, array|callable|Closure|string $action = null): void
217+
public function on(string $table, array|string $eventType, array|callable|Closure|string|null $action = null): void
218218
{
219219
// table as db.tb1,db.tb2,...
220220
if (str_contains($table, ',')) {
@@ -296,7 +296,7 @@ public function dispatch(EventDTO $event): void
296296
*
297297
* @param mixed $events
298298
*/
299-
public function fire($events, EventDTO $event = null): void
299+
public function fire($events, ?EventDTO $event = null): void
300300
{
301301
collect($events)->each(function ($e) use ($event) {
302302
collect(Arr::get($this->events, $e))->each(fn ($action) => $this->call(...$this->parseAction($action, $event)));

0 commit comments

Comments
 (0)