for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yiisoft\EventDispatcher\Provider;
abstract class AbstractProviderConfigurator
{
protected function attach(callable $listener, string $eventClassName = ''): void
$listener
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function attach(/** @scrutinizer ignore-unused */ callable $listener, string $eventClassName = ''): void
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$eventClassName
protected function attach(callable $listener, /** @scrutinizer ignore-unused */ string $eventClassName = ''): void
throw new \RuntimeException("Method 'attach' does not exist.");
}
protected function detach(string $eventClassName): void
protected function detach(/** @scrutinizer ignore-unused */ string $eventClassName): void
throw new \RuntimeException("Method 'detach' does not exist.");
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.