diff --git a/src/Commands/PublishCommand.php b/src/Commands/PublishCommand.php index f1c8c70..3f0f385 100644 --- a/src/Commands/PublishCommand.php +++ b/src/Commands/PublishCommand.php @@ -9,7 +9,7 @@ class PublishCommand extends Command { - public $signature = 'ddd:publish'; + public $name = 'ddd:publish'; protected $description = 'Publish package resources'; @@ -38,8 +38,8 @@ protected function askForThingsToPublish() public function handle(): int { $thingsToPublish = [ - ...$this->hasOption('config') ? ['config'] : [], - ...$this->hasOption('stubs') ? ['stubs'] : [], + ...$this->option('config') ? ['config'] : [], + ...$this->option('stubs') ? ['stubs'] : [], ] ?: $this->askForThingsToPublish(); if (in_array('config', $thingsToPublish)) {