for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace pjpawel\LightApi\Component\Event;
class EventHandler
{
/**
* @var array<string
array<string
2
*/
private array $events = [];
$events
public function registerEvent(string $id): void
$id
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function registerEvent(/** @scrutinizer ignore-unused */ string $id): void
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
}
public function handle(string $eventId)
$eventId
public function handle(/** @scrutinizer ignore-unused */ string $eventId)