1 | <?php |
||
9 | final class Grapher |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $classDir; |
||
15 | |||
16 | /** |
||
17 | * @var Container |
||
18 | */ |
||
19 | private $container; |
||
20 | |||
21 | /** |
||
22 | * @param AbstractModule $module Binding module |
||
23 | * @param string $tmpDir Writable directory for generated AOP classes |
||
|
|||
24 | */ |
||
25 | public function __construct(AbstractModule $module, string $classDir) |
||
35 | |||
36 | /** |
||
37 | * Wakeup |
||
38 | */ |
||
39 | public function __wakeup() |
||
50 | |||
51 | /** |
||
52 | * Build an object graph with give constructor parameters |
||
53 | * |
||
54 | * @param string $class class name |
||
55 | * @param array $params constuct paramteters |
||
56 | * |
||
57 | * @return mixed |
||
58 | */ |
||
59 | public function newInstanceArgs(string $class, array $params) |
||
63 | } |
||
64 |
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.