These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Postpay\HttpClients; |
||
4 | |||
5 | use Postpay\Http\Request; |
||
6 | |||
7 | interface ClientInterface |
||
8 | { |
||
9 | /** |
||
10 | * Sends a request to the server and returns the response. |
||
11 | * |
||
12 | * @param Request $request Request to send. |
||
13 | * @param int|null $timeOut The timeout for the request. |
||
0 ignored issues
–
show
|
|||
14 | * |
||
15 | * @return \Postpay\Http\Response Response from the server. |
||
16 | * |
||
17 | * @throws \Postpay\Exceptions\PostpayException |
||
18 | */ |
||
19 | public function send(Request $request, $timeout = null); |
||
20 | } |
||
21 |
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.