for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* @copyright (c) 2019 Mendel <[email protected]>
* @license see license.txt
*/
namespace drycart\di\tests;
use drycart\di\MagicStoreTrait;
/**
* Description of Dummy3
*
* @author mendel
class DummyComplex implements DummyInterface
{
use MagicStoreTrait;
public function __construct(?int $intDummy, ?string $notExist, $noTypeParameter = 1, string $defaultString = 'DefaultString')
$this->_store(get_defined_vars());
}
public function method(Dummy $dummy, ?int $i) : Dummy
$i
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function method(Dummy $dummy, /** @scrutinizer ignore-unused */ ?int $i) : Dummy
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return $dummy;
public function whoAmI()
return get_class($this);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.