Skip to content

Commit

Permalink
Merge pull request #34 from santos-sabanari/patch-1
Browse files Browse the repository at this point in the history
Update KeepsDeletedModels trait
  • Loading branch information
Nielsvanpach authored Jan 9, 2025
2 parents c824ea9 + 1b960a1 commit 85911d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Concerns/KeepsDeletedModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static function deletedModels(): Builder
return static::getDeletedModelClassName()::query()->where('model', $model);
}

public static function restore(mixed $key, Closure $beforeSaving = null): Model
public static function restore(mixed $key, ?Closure $beforeSaving = null): Model
{
$deletedModel = self::findDeletedModelToRestore($key);

Expand Down

0 comments on commit 85911d2

Please sign in to comment.