1 | <?php |
||
12 | class SettingController extends Controller |
||
13 | { |
||
14 | /** |
||
15 | * Display a listing of the resource. |
||
16 | * |
||
17 | * @return View |
||
18 | * @throws AuthorizationException |
||
19 | */ |
||
20 | public function index() |
||
25 | |||
26 | /** |
||
27 | * Store a newly created resource in storage. |
||
28 | * |
||
29 | * @param StoreFormRequest $request |
||
30 | * @return RedirectResponse |
||
31 | * @throws AuthorizationException |
||
32 | */ |
||
33 | public function store(StoreFormRequest $request) |
||
39 | |||
40 | /** |
||
41 | * Update the specified resource in storage. |
||
42 | * |
||
43 | * @param UpdateFormRequest $request |
||
44 | * @param Setting $setting |
||
|
|||
45 | * @return RedirectResponse |
||
46 | * @throws AuthorizationException |
||
47 | */ |
||
48 | public function update(UpdateFormRequest $request) |
||
59 | } |
||
60 |
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.