Issues (15)

tests/dummy/DummyComplex.php (1 issue)

Severity
1
<?php
2
/*
3
 * @copyright (c) 2019 Mendel <[email protected]>
4
 * @license see license.txt
5
 */
6
7
namespace drycart\di\tests\dummy;
8
use drycart\di\MagicStoreTrait;
9
10
/**
11
 * Description of Dummy3
12
 *
13
 * @author mendel
14
 */
15
class DummyComplex implements DummyInterface
16
{
17
    use MagicStoreTrait;
18
    
19
    public function __construct(?int $intDummy, ?string $notExist, $noTypeParameter = 1, string $defaultString = 'DefaultString')
20
    {
21
        $this->_store(get_defined_vars());
22
    }
23
        
24
    public function method(Dummy $dummy, ?int $i) : Dummy
0 ignored issues
show
The parameter $i is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

24
    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.

Loading history...
25
    {
26
        return $dummy;
27
    }
28
    
29
    public function whoAmI()
30
    {
31
        return get_class($this);
32
    }
33
}
34