Skip to content

Commit

Permalink
fix Z3d0X#71
Browse files Browse the repository at this point in the history
  • Loading branch information
Z3d0X committed Jul 11, 2023
1 parent 3ba1fce commit 4a3dda7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Loggers/AbstractModelLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ protected function activityLogger(string $logName = null): ActivityLogger
->setLogStatus($logStatus);
}

protected function getLoggableAttributes(Model $model, array $values = []): array
protected function getLoggableAttributes(Model $model, mixed $values = []): array
{
if (! is_array($values)) {
return [];
}

if (count($model->getVisible()) > 0) {
$values = array_intersect_key($values, array_flip($model->getVisible()));
}
Expand Down

0 comments on commit 4a3dda7

Please sign in to comment.