Skip to content

Commit 99c6806

Browse files
author
ityaozm@gmail.com
committed
fix(composer): ignore laravel-lang/common as unused dependency and cast composer binary to string
- Add 'laravel-lang/common' to the list of packages ignored for unused dependency errors - Cast the composer binary path to string to ensure correct escaping in command execution - Update AI commit config to use 'openai/gpt-4.1-mini' model for improved commit message generation
1 parent dbe99d2 commit 99c6806

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

composer-dependency-analyser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
->ignoreErrorsOnPackages(
4343
[
4444
'laminas/laminas-text',
45+
'laravel-lang/common',
4546
'laravel-zero/phar-updater',
4647
],
4748
[ErrorType::UNUSED_DEPENDENCY]

composer-updater

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ $status = (new SingleCommandApplication)
231231
return \sprintf(
232232
'%s %s',
233233
escapeshellarg($phpBinary ?? (new PhpExecutableFinder)->find()),
234-
escapeshellarg($composerBinary ?? (new ExecutableFinder)->find('composer'))
234+
escapeshellarg((string) ($composerBinary ?? (new ExecutableFinder)->find('composer')))
235235
);
236236
}
237237

config/ai-commit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
'github_models_cli' => [
143143
'driver' => 'github_models_cli',
144144
'binary' => env('GITHUB_MODELS_CLI_BINARY', 'gh'),
145-
'model' => env('GITHUB_MODELS_CLI_MODEL', 'gpt-4o-mini'),
145+
'model' => env('GITHUB_MODELS_CLI_MODEL', 'openai/gpt-4.1-mini'),
146146
'options' => [
147147
'--max-tokens' => null,
148148
'--system-prompt' => 'You are a git commit message generator.',

0 commit comments

Comments
 (0)