1 | <?php |
||
9 | class CAnaxDefault |
||
10 | { |
||
11 | use \Anax\DI\TInjectable, |
||
12 | \Anax\TConfigure, |
||
13 | \Anax\TLoadFile; |
||
14 | |||
15 | |||
16 | |||
17 | /** |
||
18 | * Construct. |
||
19 | * |
||
20 | * @param array $di dependency injection of service container. |
||
21 | */ |
||
22 | public function __construct($di) |
||
27 | |||
28 | |||
29 | |||
30 | /** |
||
31 | * Load routes from files. |
||
32 | * |
||
33 | * @param array $di dependency injection of service container. |
||
|
|||
34 | * |
||
35 | * @return $this for chaining. |
||
36 | */ |
||
37 | public function loadRoutes() |
||
45 | } |
||
46 |
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.