diff --git a/src/Neves/Events/TransactionalDispatcher.php b/src/Neves/Events/TransactionalDispatcher.php index 31b742e383..0c3decc922 100644 --- a/src/Neves/Events/TransactionalDispatcher.php +++ b/src/Neves/Events/TransactionalDispatcher.php @@ -284,17 +284,22 @@ private function matches($pattern, $event) : bool || Str::startsWith($event, $pattern); } + /** + * Setup listeners for transaction events. + * + * @return void + */ private function setUpListeners() : void { - $this->dispatcher->listen(TransactionBeginning::class, function ($event) { + $this->dispatcher->listen(TransactionBeginning::class, function () { $this->onTransactionBegin(); }); - $this->dispatcher->listen(TransactionCommitted::class, function ($event) { + $this->dispatcher->listen(TransactionCommitted::class, function () { $this->onTransactionCommit(); }); - $this->dispatcher->listen(TransactionRolledBack::class, function ($event) { + $this->dispatcher->listen(TransactionRolledBack::class, function () { $this->onTransactionRollback(); }); }