1 | <?php |
||
10 | class Detect implements \badams\MicrosoftTranslator\ApiMethodInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $text; |
||
16 | |||
17 | /** |
||
18 | * Translate constructor. |
||
19 | * @param $text |
||
20 | * @param $to |
||
21 | * @param null $from |
||
|
|||
22 | */ |
||
23 | 3 | public function __construct($text) |
|
27 | |||
28 | /** |
||
29 | * @return string |
||
30 | */ |
||
31 | 3 | public function getRequestMethod() |
|
35 | |||
36 | /** |
||
37 | * @return array |
||
38 | */ |
||
39 | 3 | public function getRequestOptions() |
|
43 | |||
44 | /** |
||
45 | * @param \GuzzleHttp\Message\ResponseInterface $response |
||
46 | * @return string |
||
47 | */ |
||
48 | 3 | public function processResponse(\GuzzleHttp\Message\ResponseInterface $response) |
|
53 | |||
54 | |||
55 | } |
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.