[4.x] Add --skip-tenants option to HasTenantOptions #2592
ci.yml
on: pull_request
Code style (php-cs-fixer)
10s
Static analysis (PHPStan)
31s
Matrix: tests
Annotations
8 errors and 3 warnings
|
Static analysis (PHPStan)
Process completed with exit code 1.
|
|
Static analysis (PHPStan):
src/Concerns/HasTenantOptions.php (in context of class Stancl/Tenancy/Commands/Up)#L19
Method Stancl\Tenancy\Commands\Up::getOptions() should return array<array{0: non-empty-string, 1?: non-empty-array<string>|string, 2?: 1|2|4|8|16, 3?: string, 4?: mixed, 5?: (Closure(Symfony\Component\Console\Completion\CompletionInput, Symfony\Component\Console\Completion\CompletionSuggestions): list<string|Symfony\Component\Console\Completion\Suggestion>)|list<string|Symfony\Component\Console\Completion\Suggestion>}|Symfony\Component\Console\Input\InputOption> but returns non-empty-array<array{'skip-tenants', null, 12, 'The tenants to skip…', null}|array{'tenants', null, 12, 'The tenants to run…', null}|array{'with-pending', null, 1, 'Include pending…'}|array{0: non-empty-string, 1?: non-empty-array<string>|string, 2?: 1|2|4|8|16, 3?: string, 4?: mixed, 5?: (Closure(Symfony\Component\Console\Completion\CompletionInput, Symfony\Component\Console\Completion\CompletionSuggestions): list<string|Symfony\Component\Console\Completion\Suggestion>)|list<string|Symfony\Component\Console\Completion\Suggestion>}|Symfony\Component\Console\Input\InputOption>.
|
|
Static analysis (PHPStan):
src/Concerns/HasTenantOptions.php (in context of class Stancl/Tenancy/Commands/Run)#L19
Method Stancl\Tenancy\Commands\Run::getOptions() should return array<array{0: non-empty-string, 1?: non-empty-array<string>|string, 2?: 1|2|4|8|16, 3?: string, 4?: mixed, 5?: (Closure(Symfony\Component\Console\Completion\CompletionInput, Symfony\Component\Console\Completion\CompletionSuggestions): list<string|Symfony\Component\Console\Completion\Suggestion>)|list<string|Symfony\Component\Console\Completion\Suggestion>}|Symfony\Component\Console\Input\InputOption> but returns non-empty-array<array{'skip-tenants', null, 12, 'The tenants to skip…', null}|array{'tenants', null, 12, 'The tenants to run…', null}|array{'with-pending', null, 1, 'Include pending…'}|array{0: non-empty-string, 1?: non-empty-array<string>|string, 2?: 1|2|4|8|16, 3?: string, 4?: mixed, 5?: (Closure(Symfony\Component\Console\Completion\CompletionInput, Symfony\Component\Console\Completion\CompletionSuggestions): list<string|Symfony\Component\Console\Completion\Suggestion>)|list<string|Symfony\Component\Console\Completion\Suggestion>}|Symfony\Component\Console\Input\InputOption>.
|
|
Static analysis (PHPStan):
src/Concerns/HasTenantOptions.php (in context of class Stancl/Tenancy/Commands/MigrateFresh)#L19
Method Stancl\Tenancy\Commands\MigrateFresh::getOptions() should return array<array{0: non-empty-string, 1?: non-empty-array<string>|string, 2?: 1|2|4|8|16, 3?: string, 4?: mixed, 5?: (Closure(Symfony\Component\Console\Completion\CompletionInput, Symfony\Component\Console\Completion\CompletionSuggestions): list<string|Symfony\Component\Console\Completion\Suggestion>)|list<string|Symfony\Component\Console\Completion\Suggestion>}|Symfony\Component\Console\Input\InputOption> but returns non-empty-array<array{'skip-tenants', null, 12, 'The tenants to skip…', null}|array{'tenants', null, 12, 'The tenants to run…', null}|array{'with-pending', null, 1, 'Include pending…'}|array{0: non-empty-string, 1?: non-empty-array<string>|string, 2?: 1|2|4|8|16, 3?: string, 4?: mixed, 5?: (Closure(Symfony\Component\Console\Completion\CompletionInput, Symfony\Component\Console\Completion\CompletionSuggestions): list<string|Symfony\Component\Console\Completion\Suggestion>)|list<string|Symfony\Component\Console\Completion\Suggestion>}|Symfony\Component\Console\Input\InputOption>.
|
|
Static analysis (PHPStan):
src/Concerns/HasTenantOptions.php (in context of class Stancl/Tenancy/Commands/Migrate)#L19
Method Stancl\Tenancy\Commands\Migrate::getOptions() should return array<array{0: non-empty-string, 1?: non-empty-array<string>|string, 2?: 1|2|4|8|16, 3?: string, 4?: mixed, 5?: (Closure(Symfony\Component\Console\Completion\CompletionInput, Symfony\Component\Console\Completion\CompletionSuggestions): list<string|Symfony\Component\Console\Completion\Suggestion>)|list<string|Symfony\Component\Console\Completion\Suggestion>}|Symfony\Component\Console\Input\InputOption> but returns non-empty-array<array{'skip-tenants', null, 12, 'The tenants to skip…', null}|array{'tenants', null, 12, 'The tenants to run…', null}|array{'with-pending', null, 1, 'Include pending…'}|array{0: non-empty-string, 1?: non-empty-array<string>|string, 2?: 1|2|4|8|16, 3?: string, 4?: mixed, 5?: (Closure(Symfony\Component\Console\Completion\CompletionInput, Symfony\Component\Console\Completion\CompletionSuggestions): list<string|Symfony\Component\Console\Completion\Suggestion>)|list<string|Symfony\Component\Console\Completion\Suggestion>}|Symfony\Component\Console\Input\InputOption>.
|
|
Static analysis (PHPStan):
src/Concerns/HasTenantOptions.php (in context of class Stancl/Tenancy/Commands/Link)#L19
Method Stancl\Tenancy\Commands\Link::getOptions() should return array<array{0: non-empty-string, 1?: non-empty-array<string>|string, 2?: 1|2|4|8|16, 3?: string, 4?: mixed, 5?: (Closure(Symfony\Component\Console\Completion\CompletionInput, Symfony\Component\Console\Completion\CompletionSuggestions): list<string|Symfony\Component\Console\Completion\Suggestion>)|list<string|Symfony\Component\Console\Completion\Suggestion>}|Symfony\Component\Console\Input\InputOption> but returns non-empty-array<array{'skip-tenants', null, 12, 'The tenants to skip…', null}|array{'tenants', null, 12, 'The tenants to run…', null}|array{'with-pending', null, 1, 'Include pending…'}|array{0: non-empty-string, 1?: non-empty-array<string>|string, 2?: 1|2|4|8|16, 3?: string, 4?: mixed, 5?: (Closure(Symfony\Component\Console\Completion\CompletionInput, Symfony\Component\Console\Completion\CompletionSuggestions): list<string|Symfony\Component\Console\Completion\Suggestion>)|list<string|Symfony\Component\Console\Completion\Suggestion>}|Symfony\Component\Console\Input\InputOption>.
|
|
Static analysis (PHPStan):
src/Concerns/HasTenantOptions.php (in context of class Stancl/Tenancy/Commands/Down)#L19
Method Stancl\Tenancy\Commands\Down::getOptions() should return array<array{0: non-empty-string, 1?: non-empty-array<string>|string, 2?: 1|2|4|8|16, 3?: string, 4?: mixed, 5?: (Closure(Symfony\Component\Console\Completion\CompletionInput, Symfony\Component\Console\Completion\CompletionSuggestions): list<string|Symfony\Component\Console\Completion\Suggestion>)|list<string|Symfony\Component\Console\Completion\Suggestion>}|Symfony\Component\Console\Input\InputOption> but returns non-empty-array<array{'skip-tenants', null, 12, 'The tenants to skip…', null}|array{'tenants', null, 12, 'The tenants to run…', null}|array{'with-pending', null, 1, 'Include pending…'}|array{0: non-empty-string, 1?: non-empty-array<string>|string, 2?: 1|2|4|8|16, 3?: string, 4?: mixed, 5?: (Closure(Symfony\Component\Console\Completion\CompletionInput, Symfony\Component\Console\Completion\CompletionSuggestions): list<string|Symfony\Component\Console\Completion\Suggestion>)|list<string|Symfony\Component\Console\Completion\Suggestion>}|Symfony\Component\Console\Input\InputOption>.
|
|
Static analysis (PHPStan):
src/Commands/TenantDump.php#L65
Method Stancl\Tenancy\Commands\TenantDump::getOptions() should return array<array{0: non-empty-string, 1?: non-empty-array<string>|string, 2?: 1|2|4|8|16, 3?: string, 4?: mixed, 5?: (Closure(Symfony\Component\Console\Completion\CompletionInput, Symfony\Component\Console\Completion\CompletionSuggestions): list<string|Symfony\Component\Console\Completion\Suggestion>)|list<string|Symfony\Component\Console\Completion\Suggestion>}|Symfony\Component\Console\Input\InputOption> but returns non-empty-array<array{'tenant', null, 4, '', null}|array{0: non-empty-string, 1?: non-empty-array<string>|string, 2?: 1|2|4|8|16, 3?: string, 4?: mixed, 5?: (Closure(Symfony\Component\Console\Completion\CompletionInput, Symfony\Component\Console\Completion\CompletionSuggestions): list<string|Symfony\Component\Console\Completion\Suggestion>)|list<string|Symfony\Component\Console\Completion\Suggestion>}|Symfony\Component\Console\Input\InputOption>.
|
|
Code style (php-cs-fixer)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
Code style (php-cs-fixer)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
Code style (php-cs-fixer)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|