-
Notifications
You must be signed in to change notification settings - Fork 269
New --types flag behavior breaks Laravel convention #879
Copy link
Copy link
Open
Description
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
n/aRoute definition
n/aReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels