1 | <?php |
||
23 | class Client implements HttpClient, HttpAsyncClient |
||
24 | { |
||
25 | /** |
||
26 | * React HTTP client. |
||
27 | * |
||
28 | * @var Client |
||
29 | */ |
||
30 | private $client; |
||
31 | |||
32 | /** |
||
33 | * React event loop. |
||
34 | * |
||
35 | * @var LoopInterface |
||
36 | */ |
||
37 | private $loop; |
||
38 | |||
39 | /** |
||
40 | * HttpPlug message factory. |
||
41 | * |
||
42 | * @var MessageFactory |
||
43 | */ |
||
44 | private $messageFactory; |
||
45 | |||
46 | /** |
||
47 | * Initialize the React client. |
||
48 | * |
||
49 | * @param LoopInterface|null $loop React Event loop |
||
50 | * @param Resolver $resolver React async DNS resolver |
||
|
|||
51 | * @param ReactClient $client React client to use |
||
52 | */ |
||
53 | public function __construct( |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function sendRequest(RequestInterface $request) |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function sendAsyncRequest(RequestInterface $request) |
||
130 | |||
131 | /** |
||
132 | * Build a React request from the PSR7 RequestInterface. |
||
133 | * |
||
134 | * @param RequestInterface $request |
||
135 | * |
||
136 | * @return ReactRequest |
||
137 | */ |
||
138 | private function buildReactRequest(RequestInterface $request) |
||
154 | |||
155 | /** |
||
156 | * Transform a React Response to a valid PSR7 ResponseInterface instance. |
||
157 | * |
||
158 | * @param ReactResponse $response |
||
159 | * |
||
160 | * @return ResponseInterface |
||
161 | */ |
||
162 | private function buildResponse( |
||
176 | } |
||
177 |
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.