Skip to content

Commit

Permalink
Merge pull request #420 from ben-challis/patch-1
Browse files Browse the repository at this point in the history
Fix fatal error on startup with Symfony 7.x due to changes in command naming
  • Loading branch information
fain182 authored Jan 16, 2024
2 parents 6c574a7 + 990ba27 commit 96375f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions src/CLI/Command/DebugExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

class DebugExpression extends Command
{
/** @var string|null */
public static $defaultName = 'debug:expression';

/** @var string|null */
public static $defaultDescription = <<< 'EOT'
Check which classes respect an expression
Expand All @@ -29,6 +26,11 @@ class DebugExpression extends Command
Check which classes respect an expression
EOT;

public function __construct()
{
parent::__construct('debug:expression');
}

protected function configure(): void
{
$this
Expand Down
8 changes: 5 additions & 3 deletions src/CLI/Command/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@

class Init extends Command
{
/** @var string|null */
public static $defaultName = 'init';

/** @var string|null */
public static $defaultDescription = <<< 'EOT'
Creates a new phparkitect.php file
Expand All @@ -25,6 +22,11 @@ class Init extends Command
You can customize the directory where the file is created specifying <comment>-d /dest/path</comment>
EOT;

public function __construct()
{
parent::__construct('init');
}

protected function configure(): void
{
$this
Expand Down

0 comments on commit 96375f3

Please sign in to comment.