1 | <?php |
||
7 | class HistoryController extends Controller |
||
8 | { |
||
9 | /** |
||
10 | * Show History of changes column. |
||
11 | * |
||
12 | * @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
13 | */ |
||
14 | public function index() |
||
20 | |||
21 | /** |
||
22 | * Show specific item by ID. |
||
23 | * @param History $history |
||
|
|||
24 | * @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
25 | */ |
||
26 | public function show($id) |
||
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.