1 | <?php |
||
23 | class All extends HttpRelayBuilder |
||
24 | { |
||
25 | /** |
||
26 | * The node |
||
27 | */ |
||
28 | const NODE = 'content/api'; |
||
29 | |||
30 | /** |
||
31 | * The resource |
||
32 | */ |
||
33 | const RESOURCE = 'blog-posts'; |
||
34 | |||
35 | /** |
||
36 | * @param array $params |
||
37 | * @param CacheInterface $cache |
||
38 | * @param AuthorizationInterface $authorization |
||
39 | * @param LoggerInterface|null $logger |
||
40 | * @param array $config |
||
41 | */ |
||
42 | public function __construct( |
||
56 | |||
57 | /** |
||
58 | * @param CacheInterface $cache |
||
59 | * @param string $key |
||
60 | * @param LoggerInterface|null $logger |
||
61 | * @return $this |
||
62 | */ |
||
63 | protected function addCache(CacheInterface $cache, string $key, LoggerInterface $logger = null) |
||
72 | |||
73 | /** |
||
74 | * @param string $domain |
||
|
|||
75 | * @param LoggerInterface|null $logger |
||
76 | * @return $this |
||
77 | */ |
||
78 | protected function addUri(array $params, LoggerInterface $logger = null) |
||
89 | } |
||
90 |
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.