for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Di;
use Psr\Container\ContainerInterface;
abstract class AbstractContainerConfigurator
{
protected function set(string $id, $definition): void
$id
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function set(/** @scrutinizer ignore-unused */ string $id, $definition): void
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$definition
protected function set(string $id, /** @scrutinizer ignore-unused */ $definition): void
throw new \RuntimeException("Method 'set' does not exist.");
}
protected function setMultiple(array $config): void
$config
protected function setMultiple(/** @scrutinizer ignore-unused */ array $config): void
throw new \RuntimeException("Method 'setMultiple' does not exist.");
protected function delegateLookup(ContainerInterface $container): void
$container
protected function delegateLookup(/** @scrutinizer ignore-unused */ ContainerInterface $container): void
throw new \RuntimeException("Method 'delegateLookup' does not exist.");
protected function hasDefinition($id): bool
protected function hasDefinition(/** @scrutinizer ignore-unused */ $id): bool
throw new \RuntimeException("Method 'hasDefinition' 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.