Skip to content

Commit

Permalink
feat: type-safety for kit option
Browse files Browse the repository at this point in the history
  • Loading branch information
belzaaron authored and owenvoke committed Sep 25, 2024
1 parent a018e30 commit 64d9266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/SyncIconsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function handle(): ?int
} elseif ($this->hasOption('kit')) {
$kitId = $this->option('kit');

if (! $kitId) {
if (! is_string($kitId) || empty($kitId)) {
$this->warn('You must provide a kit id when using the --kit option');

return self::FAILURE;
Expand Down

0 comments on commit 64d9266

Please sign in to comment.