for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Stratadox\CardGame\Match\Command;
use Stratadox\CardGame\Command;
use Stratadox\CardGame\CorrelationId;
use Stratadox\CardGame\Match\MatchId;
final class EndCardPlaying implements Command
{
/** @var int */
private $player;
/** @var MatchId */
private $match;
/** @var CorrelationId */
private $correlationId;
private function __construct(
int $player,
MatchId $match,
CorrelationId $correlationId
$correlationId
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
/** @scrutinizer ignore-unused */ CorrelationId $correlationId
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
) {
$this->player = $player;
$this->match = $match;
}
public static function phase(
): self {
return new self($player, $match, $correlationId);
public function player(): int
return $this->player;
public function match(): MatchId
return $this->match;
public function correlationId(): CorrelationId
return $this->correlationId;
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.