1 | <?php |
||
9 | class APIPollClient |
||
10 | { |
||
11 | /** @var string */ |
||
12 | private $botToken; |
||
13 | /** @var int */ |
||
14 | private $offset; |
||
15 | /** @var \React\HttpClient\Client */ |
||
16 | private $client; |
||
17 | |||
18 | /** |
||
19 | * @param string $botToken |
||
20 | */ |
||
21 | public function __construct(string $botToken, Client $client) |
||
26 | |||
27 | /** |
||
28 | * @param CallableInterface $responseInterface |
||
|
|||
29 | */ |
||
30 | public function poll($responseHandler) |
||
42 | |||
43 | /** |
||
44 | * @param string $answer |
||
45 | * @param APIMessage $message |
||
46 | */ |
||
47 | public function send($answer, APIMessage $message) |
||
59 | |||
60 | public function markMessageHandled(APIMessage $message) |
||
64 | |||
65 | public function getResponseHeaders(string $responseString) :array |
||
72 | |||
73 | |||
74 | private function botCommand(string $command, array $params = []) :string |
||
80 | |||
81 | |||
82 | private function assembleUri($command, $params) :string |
||
91 | |||
92 | private function postDataEncoder(array $data) :string |
||
102 | } |
||
103 |
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.