1 | <?php |
||
20 | class EntityManager |
||
21 | { |
||
22 | /** |
||
23 | * @var APIGuzzleAdapter |
||
24 | */ |
||
25 | private $adapter; |
||
26 | |||
27 | /** |
||
28 | * @var LoggerInterface |
||
29 | */ |
||
30 | private $logger; |
||
31 | |||
32 | /** |
||
33 | * @var AbstractRepository[] |
||
34 | */ |
||
35 | private $repositories = array(); |
||
36 | |||
37 | /** |
||
38 | * @param APIGuzzleAdapter $v1Adapter |
||
|
|||
39 | * @param LoggerInterface $logger |
||
40 | */ |
||
41 | 88 | public function __construct( |
|
48 | |||
49 | /** |
||
50 | * @return LoggerInterface |
||
51 | */ |
||
52 | public function getLogger() |
||
56 | |||
57 | /** |
||
58 | * Return the client attached to this entity manager |
||
59 | * |
||
60 | * @return APIGuzzleAdapter |
||
61 | */ |
||
62 | 86 | public function getAdapter() |
|
66 | |||
67 | /** |
||
68 | * Get a repository by its name |
||
69 | * |
||
70 | * @param string $name |
||
71 | * @return AbstractRepository |
||
72 | */ |
||
73 | 17 | public function getRepository($name) |
|
94 | } |
||
95 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.