1 | <?php |
||
21 | class Provider implements FeedProviderInterface |
||
22 | { |
||
23 | |||
24 | protected $logger; |
||
25 | |||
26 | protected $registry; |
||
27 | |||
28 | protected $router; |
||
29 | |||
30 | /** |
||
31 | * Provider constructor. |
||
32 | * @param LoggerInterface $logger |
||
33 | * @param Registry $registry |
||
34 | * @param Router $router |
||
35 | */ |
||
36 | public function __construct(LoggerInterface $logger, Registry $registry, Router $router) |
||
42 | |||
43 | /** |
||
44 | * @param array $options |
||
|
|||
45 | * @return FeedInterface |
||
46 | */ |
||
47 | public function getFeed(Request $request) : FeedInterface |
||
85 | |||
86 | /** |
||
87 | * You'll need to code this |
||
88 | * @return array |
||
89 | */ |
||
90 | protected function getPosts() |
||
94 | |||
95 | } |
||
96 |
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.