Skip to content

Commit

Permalink
Update baseline with unused properties
Browse files Browse the repository at this point in the history
Signed-off-by: Kristofer Karlsson <[email protected]>
  • Loading branch information
grizzm0 committed Sep 10, 2024
1 parent 9e1b04d commit 1bd0155
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
20 changes: 20 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@
<code>$cacheControlDirectives[$regex]</code>
</MixedArrayOffset>
</file>
<file src="src/Command/ReloadCommand.php">
<PossiblyUnusedProperty>
<code>$defaultName</code>
</PossiblyUnusedProperty>
</file>
<file src="src/Command/StartCommand.php">
<PossiblyUnusedProperty>
<code>$defaultName</code>
</PossiblyUnusedProperty>
</file>
<file src="src/Command/StatusCommand.php">
<PossiblyUnusedProperty>
<code>$defaultName</code>
</PossiblyUnusedProperty>
</file>
<file src="src/Command/StopCommand.php">
<PossiblyUnusedProperty>
<code>$defaultName</code>
</PossiblyUnusedProperty>
</file>
<file src="src/Event/ServerShutdownEvent.php">
<PossiblyUnusedMethod>
<code>getServer</code>
Expand Down
7 changes: 7 additions & 0 deletions src/Command/ReloadCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
7 changes: 7 additions & 0 deletions src/Command/StartCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
7 changes: 7 additions & 0 deletions src/Command/StatusCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
7 changes: 7 additions & 0 deletions src/Command/StopCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 1bd0155

Please sign in to comment.