From 4fc5c69358988c8ef66c8420f733de29205a341f Mon Sep 17 00:00:00 2001 From: CasEbb <617080+CasEbb@users.noreply.github.com> Date: Thu, 13 Nov 2025 10:33:36 +0100 Subject: [PATCH] Carry `--force` to `make:test` for generators with `--test` --- src/Illuminate/Console/Concerns/CreatesMatchingTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Illuminate/Console/Concerns/CreatesMatchingTest.php b/src/Illuminate/Console/Concerns/CreatesMatchingTest.php index 864ad5262fa5..b19accdcacdd 100644 --- a/src/Illuminate/Console/Concerns/CreatesMatchingTest.php +++ b/src/Illuminate/Console/Concerns/CreatesMatchingTest.php @@ -40,6 +40,7 @@ protected function handleTestCreation($path) 'name' => (new Stringable($path))->after($this->laravel['path'])->beforeLast('.php')->append('Test')->replace('\\', '/'), '--pest' => $this->option('pest'), '--phpunit' => $this->option('phpunit'), + '--force' => $this->hasOption('force') && $this->option('force'), ]) == 0; } }