Skip to content

Commit

Permalink
Remove annotation, as that will fail phpstan on PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dingo-d committed Nov 10, 2023
1 parent 85e5236 commit 7647d70
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/Command/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@
*
* @since 1.0.0
*/
#[AsCommand(
name: 'setup',
description: 'Sets up the test suites.',
hidden: false,
)]
class InitCommand extends Command
{
/**
Expand Down Expand Up @@ -164,6 +159,15 @@ class InitCommand extends Command
*/
private ClientInterface $client;

/**
* Command name property
*
* @since 1.0.0
*
* @var string Command name.
*/
protected static $defaultName = 'setup';

/**
* Command class constructor
*
Expand Down Expand Up @@ -193,6 +197,7 @@ public function __construct(string $rootPath, Filesystem $filesystem, ClientInte
protected function configure(): void
{
$this
->setDescription('Sets up the test suites.')
->setHelp('This command helps you set up WordPress integration and unit test suites.')
->addArgument(
self::PROJECT_TYPE,
Expand Down

0 comments on commit 7647d70

Please sign in to comment.