1 | <?php |
||
15 | class BaseSizeFactory implements SizeFactoryInterface |
||
16 | { |
||
17 | /** |
||
18 | * File size range. |
||
19 | * |
||
20 | * @var RangeInterface |
||
21 | */ |
||
22 | private $range; |
||
23 | |||
24 | /** |
||
25 | * BaseSizeFactory constructor. |
||
26 | * |
||
27 | * @param int $minSize |
||
28 | * @param int $maxSize |
||
29 | */ |
||
30 | 3 | public function __construct($minSize, $maxSize) |
|
31 | { |
||
32 | 3 | $this->range = new BaseRange( |
|
33 | 1 | $minSize, |
|
34 | 2 | $maxSize |
|
35 | 1 | ); |
|
36 | 3 | } |
|
37 | |||
38 | /** |
||
39 | * Create instances of Size object. |
||
40 | * |
||
41 | * @param int $size |
||
42 | * @param int $minSize |
||
|
|||
43 | * @param int $maxSize |
||
44 | * |
||
45 | * @return SizeInterface |
||
46 | */ |
||
47 | 3 | public function make($size) |
|
54 | } |
||
55 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.