| 1 | <?php |
||
| 8 | abstract class Guzzle |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $baseUri; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param string $baseUrl |
||
|
|
|||
| 17 | */ |
||
| 18 | public function __construct($config) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | public function getBaseUri() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $baseUri |
||
| 35 | * |
||
| 36 | * @return self |
||
| 37 | */ |
||
| 38 | public function setBaseUri($baseUri) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param Request $request |
||
| 47 | * |
||
| 48 | * @return Response |
||
| 49 | */ |
||
| 50 | abstract public function send(Request $request); |
||
| 51 | } |
||
| 52 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.