diff --git a/app/Commands/CommitCommand.php b/app/Commands/CommitCommand.php index 57266ad..fde9672 100644 --- a/app/Commands/CommitCommand.php +++ b/app/Commands/CommitCommand.php @@ -116,7 +116,7 @@ function ($attempts) use ($cachedDiff, $type): string { return $content; }) ->tap(function (Collection $message): void { - $message = $message->put('', null)->sortKeysUsing(static function (string $a, string $b): int { + $message = $message->put('', '')->sortKeysUsing(static function (string $a, string $b): int { $rules = ['subject', '', 'body']; return array_search($a, $rules, true) <=> array_search($b, $rules, true);