1 | <?php |
||
10 | class LaravelTracyController extends Controller |
||
11 | { |
||
12 | /** |
||
13 | * bar. |
||
14 | * |
||
15 | * @param \Recca0120\LaravelTracy\DebuggerManager $debuggerManager |
||
16 | * @param \Illuminate\Http\Request $request |
||
17 | * @param \Illuminate\Contracts\Routing\ResponseFactory $responseFactory |
||
18 | * @param string $type |
||
|
|||
19 | * @return \Illuminate\Http\Response |
||
20 | */ |
||
21 | 1 | public function bar(DebuggerManager $debuggerManager, Request $request, ResponseFactory $responseFactory) |
|
33 | } |
||
34 |
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.