1 | <?php |
||
9 | class Fractal extends Fractalistic |
||
10 | { |
||
11 | /** @var \Spatie\Fractal\Response */ |
||
12 | protected $response; |
||
13 | |||
14 | /** @param \League\Fractal\Manager $manager */ |
||
15 | public function __construct(Manager $manager) |
||
21 | |||
22 | /** |
||
23 | * Return a new JSON response. |
||
24 | * |
||
25 | * @param callable|int $callbackOrStatusCode |
||
26 | * @param array $headers |
||
|
|||
27 | * |
||
28 | * @return \Illuminate\Http\JsonResponse |
||
29 | */ |
||
30 | public function respond($callbackOrStatusCode = 200, $callbackOrHeaders = []) |
||
46 | } |
||
47 |
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.