Skip to content

Commit 8b88302

Browse files
committed
🐛 void function does not return
1 parent 23ff144 commit 8b88302

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/AuditableObserver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ protected function dispatchAudit(Auditable $model)
107107

108108
$model->preloadResolverData();
109109
if (!Config::get('audit.queue.enable', false)) {
110-
return Auditor::execute($model);
110+
Auditor::execute($model);
111+
return;
111112
}
112113

113114
if (!$this->fireDispatchingAuditEvent($model)) {

src/Contracts/Auditor.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,12 @@ interface Auditor
66
{
77
/**
88
* Get an audit driver instance.
9-
*
10-
* @param \OwenIt\Auditing\Contracts\Auditable $model
11-
*
12-
* @return AuditDriver
139
*/
1410
public function auditDriver(Auditable $model): AuditDriver;
1511

1612
/**
1713
* Perform an audit.
1814
*
19-
* @param \OwenIt\Auditing\Contracts\Auditable $model
20-
*
2115
* @return void
2216
*/
2317
public function execute(Auditable $model);

0 commit comments

Comments
 (0)