1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 20:14:04 +00:00

Fix issues

This commit is contained in:
j.stein 2022-02-12 16:53:23 +01:00
parent 0a37eb487a
commit 7bb05873f0
2 changed files with 4 additions and 3 deletions

View file

@ -5,9 +5,11 @@ declare(strict_types=1);
namespace Stancl\Tenancy\Commands; namespace Stancl\Tenancy\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Stancl\Tenancy\Concerns\HasATenantsOption;
class Run extends Command class Run extends Command
{ {
use HasATenantsOption;
/** /**
* The console command description. * The console command description.
* *
@ -21,7 +23,6 @@ class Run extends Command
* @var string * @var string
*/ */
protected $signature = "tenants:run {commandname : The command's name.} protected $signature = "tenants:run {commandname : The command's name.}
{--tenants=* : The tenant(s) to run the command for. Default: all}
{--argument=* : The arguments to pass to the command. Default: none} {--argument=* : The arguments to pass to the command. Default: none}
{--option=* : The options to pass to the command. Default: none}"; {--option=* : The options to pass to the command. Default: none}";

View file

@ -27,9 +27,9 @@ trait HasATenantsOption
->cursor(); ->cursor();
} }
protected function withPending(): bool protected function withPending(): ?bool
{ {
return $this->option('with-pending'); return $this->option('with-pending') ? true : null;
} }
public function __construct() public function __construct()