1 | <?php |
||
11 | class PlaceholdersRepository |
||
12 | { |
||
13 | |||
14 | private $configs; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $environment; |
||
20 | |||
21 | public function __construct($configs_mapping) |
||
26 | |||
27 | /** |
||
28 | * |
||
29 | * @return string[] |
||
30 | * @todo read configs and also bring alternative @config:section tags |
||
31 | */ |
||
32 | public function getTags() |
||
36 | |||
37 | /** |
||
38 | * |
||
39 | * @param type $config_files |
||
|
|||
40 | * @todo user %paths.base% value |
||
41 | */ |
||
42 | private function loadConfigFiles($configs_mapping) |
||
51 | |||
52 | public function getConfigSection($tag, $section) |
||
59 | |||
60 | public function getFilePath($tag) |
||
67 | |||
68 | public function hasTag($tag) |
||
76 | |||
77 | public function getEnvironment() |
||
81 | |||
82 | public function setEnvironment($environment) |
||
86 | } |
||
87 |
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.