diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 244f725..3b8bfec 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -5,6 +5,26 @@ $cacheControlDirectives[$regex] + + + $defaultName + + + + + $defaultName + + + + + $defaultName + + + + + $defaultName + + getServer diff --git a/src/Command/ReloadCommand.php b/src/Command/ReloadCommand.php index 782f8be..9ab88ba 100644 --- a/src/Command/ReloadCommand.php +++ b/src/Command/ReloadCommand.php @@ -35,6 +35,13 @@ class ReloadCommand extends Command configuration value is set to SWOOLE_PROCESS. EOH; + /** + * @deprecated Use ReloadCommand::getDefaultName() instead. Will be removed in 5.0.0 + * + * @var null|string + */ + public static $defaultName = 'mezzio:swoole:reload'; + public function __construct(private int $serverMode) { parent::__construct(); diff --git a/src/Command/StartCommand.php b/src/Command/StartCommand.php index 911ab9e..9440c5a 100644 --- a/src/Command/StartCommand.php +++ b/src/Command/StartCommand.php @@ -53,6 +53,13 @@ class StartCommand extends Command 'config/routes.php', ]; + /** + * @deprecated Use StartCommand::getDefaultName() instead. Will be removed in 5.0.0 + * + * @var null|string + */ + public static $defaultName = 'mezzio:swoole:start'; + public function __construct(private ContainerInterface $container) { parent::__construct(); diff --git a/src/Command/StatusCommand.php b/src/Command/StatusCommand.php index 963fe71..61cc495 100644 --- a/src/Command/StatusCommand.php +++ b/src/Command/StatusCommand.php @@ -29,6 +29,13 @@ class StatusCommand extends Command --daemonize option. EOH; + /** + * @deprecated Use StatusCommand::getDefaultName() instead. Will be removed in 5.0.0 + * + * @var null|string + */ + public static $defaultName = 'mezzio:swoole:status'; + public function __construct(private PidManager $pidManager) { parent::__construct(); diff --git a/src/Command/StopCommand.php b/src/Command/StopCommand.php index 46cb71e..5280c4f 100644 --- a/src/Command/StopCommand.php +++ b/src/Command/StopCommand.php @@ -34,6 +34,13 @@ class StopCommand extends Command --daemonize option. EOH; + /** + * @deprecated Use StopCommand::getDefaultName() instead. Will be removed in 5.0.0 + * + * @var null|string + */ + public static $defaultName = 'mezzio:swoole:stop'; + /** * @internal *