1 | <?php |
||
11 | class ModuleFinder |
||
12 | { |
||
13 | /** |
||
14 | * Return the master context for the current master module |
||
15 | * |
||
16 | * @param Context|null $parent inject a parent context |
||
17 | * |
||
18 | * @return Context |
||
19 | */ |
||
20 | public function masterContext($parent = null) |
||
39 | |||
40 | /** |
||
41 | * @param int $bit |
||
42 | * @param string $caller |
||
43 | * @param string $type |
||
44 | * |
||
45 | * @return bool|Provider |
||
46 | */ |
||
47 | public function provider($bit, $caller, $type) |
||
68 | |||
69 | /** |
||
70 | * @param Module $module |
||
71 | * @param string $name |
||
|
|||
72 | * @param int $bit |
||
73 | * @param string $caller |
||
74 | * @param string $type |
||
75 | * |
||
76 | * @return Provider|bool |
||
77 | */ |
||
78 | private function providerFromModule($module, $bit, $caller, $type) |
||
86 | |||
87 | /** |
||
88 | * @param integer $bit |
||
89 | * @param string $type |
||
90 | * |
||
91 | * @return Provider|bool |
||
92 | */ |
||
93 | private function tryModuleFallback($bit, $type) |
||
102 | |||
103 | /** |
||
104 | * Find the module of a caller class |
||
105 | * |
||
106 | * @param array $caller |
||
107 | * @param string $provider |
||
108 | * |
||
109 | * @return string module name |
||
110 | */ |
||
111 | public function find($caller, $provider) |
||
128 | |||
129 | /** |
||
130 | * @param Module $module |
||
131 | * @param bool $is_provider |
||
132 | * @param int $bit |
||
133 | * @param string $namespace |
||
134 | * |
||
135 | * @return bool |
||
136 | */ |
||
137 | private function check($module, $isProvider, $bit, $namespace) |
||
145 | |||
146 | /** |
||
147 | * Return a list of Modules providing a Salt |
||
148 | * |
||
149 | * @param string $salt |
||
150 | * @param bool $first only return the first item on the list |
||
151 | * |
||
152 | * @return Module[]|string[]|false |
||
153 | */ |
||
154 | public function modulesBySalt($salt, $first = false) |
||
168 | } |
||
169 |
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.