From 968ed921db1d30bdb66d3464d03049c260822f6d Mon Sep 17 00:00:00 2001 From: Jasper Tey Date: Sat, 9 Nov 2024 12:11:45 -0500 Subject: [PATCH] Fix php stan issues. --- src/Commands/PublishCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) {