Skip to content

Commit 25307bd

Browse files
committed
fix: null check order
1 parent 4786abf commit 25307bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Listeners/Creating.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function handle(Model $model): void
1717
$model->{$model->getCreatedByColumn()} = Userstamps::getUserId();
1818
}
1919

20-
if (is_null($model->{$model->getUpdatedByColumn()}) && ! is_null($model->getUpdatedByColumn())) {
20+
if (! is_null($model->getUpdatedByColumn()) && is_null($model->{$model->getUpdatedByColumn()})) {
2121
$model->{$model->getUpdatedByColumn()} = Userstamps::getUserId();
2222
}
2323
}

0 commit comments

Comments
 (0)