We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50fdef8 commit 0c1901bCopy full SHA for 0c1901b
src/Listeners/Creating.php
@@ -17,7 +17,7 @@ public function handle(Model $model): void
17
$model->{$model->getCreatedByColumn()} = Userstamps::getUserId();
18
}
19
20
- if (is_null($model->{$model->getUpdatedByColumn()}) && ! is_null($model->getUpdatedByColumn())) {
+ if (! is_null($model->getUpdatedByColumn()) && is_null($model->{$model->getUpdatedByColumn()})) {
21
$model->{$model->getUpdatedByColumn()} = Userstamps::getUserId();
22
23
0 commit comments