Ziggy version
v2.6.1
Laravel version
v12.53.0
Description
The new behavior of the --types flag breaks previously working code and the convention described in the Laravel documentation from executing an artisan command programmatically with a boolean flag.
This is the example code:
$exitCode = Artisan::call('migrate:refresh', [
'--force' => true,
]);
When the command is executed like this true ends up being coerced into a 1 and that becomes the name of the types file.
Ziggy call and context
// Called from within another artisan command
$this->call('ziggy:generate', ['--types' => true]);
// This works but is not intuitive
$this->call('ziggy:generate', ['--types' => null]);
Ziggy configuration
Route definition
Ziggy version
v2.6.1
Laravel version
v12.53.0
Description
The new behavior of the --types flag breaks previously working code and the convention described in the Laravel documentation from executing an artisan command programmatically with a boolean flag.
This is the example code:
When the command is executed like this
trueends up being coerced into a1and that becomes the name of the types file.Ziggy call and context
Ziggy configuration
Route definition