1 | <?php |
||
23 | class Update extends HttpRelayBuilder |
||
24 | { |
||
25 | /** |
||
26 | * The node |
||
27 | */ |
||
28 | const NODE = 'email/public'; |
||
29 | |||
30 | /** |
||
31 | * The resource |
||
32 | */ |
||
33 | const RESOURCE = 'subscriptions'; |
||
34 | |||
35 | /** |
||
36 | * @param string $email |
||
37 | * @param array $payload, |
||
|
|||
38 | * @param AuthorizationInterface $authorization |
||
39 | * @param CacheInterface $cache |
||
40 | * @param LoggerInterface|null $logger |
||
41 | * @param array $config |
||
42 | */ |
||
43 | public function __construct( |
||
59 | |||
60 | /** |
||
61 | * @param array $payload |
||
62 | * @param LoggerInterface|null $logger |
||
63 | * @return $this |
||
64 | */ |
||
65 | protected function addPayload(array $payload, LoggerInterface $logger = null) |
||
73 | |||
74 | /** |
||
75 | * @param string|null $email |
||
76 | * @param LoggerInterface|null $logger |
||
77 | * @return $this |
||
78 | */ |
||
79 | protected function addUri(string $email, LoggerInterface $logger = null) |
||
89 | |||
90 | /** |
||
91 | * @param CacheInterface $cache |
||
92 | * @param string $key |
||
93 | * @param LoggerInterface|null $logger |
||
94 | * @return $this |
||
95 | */ |
||
96 | protected function addCache(CacheInterface $cache, string $key, LoggerInterface $logger = null) |
||
105 | } |
||
106 |
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.