| 1 | <?php |
||
| 6 | class Config |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var mixed |
||
| 10 | */ |
||
| 11 | private $config = []; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param $filename |
||
| 15 | */ |
||
| 16 | public function __construct($filename = null) |
||
| 24 | |||
| 25 | public function generateDefaultConfigurationFile() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param array $options |
||
|
|
|||
| 55 | */ |
||
| 56 | public function get($section = null, $param = null) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @param array $options |
||
| 72 | */ |
||
| 73 | public function update($section, $param, $value) |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return mixed |
||
| 81 | */ |
||
| 82 | private function load($filename) |
||
| 90 | |||
| 91 | private function save() |
||
| 102 | |||
| 103 | } |
||
| 104 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.