diff --git a/app/Commands/CommitCommand.php b/app/Commands/CommitCommand.php index baeec2f..092c26d 100644 --- a/app/Commands/CommitCommand.php +++ b/app/Commands/CommitCommand.php @@ -104,7 +104,7 @@ function ($attempts) use ($cachedDiff): string { $this->task('2. Choosing commit message', function () use (&$message, $messages): void { $message = collect(json_decode($messages, true, 512, JSON_THROW_ON_ERROR)) - ->transform(function (array $message): array { + ->transform(static function (array $message): array { if (\is_array($message['body'])) { $message['body'] = collect($message['body']) ->transform(static function (string $line): string {