1 | <?php |
||
17 | class TransitionController extends Controller |
||
18 | { |
||
19 | use FlowManager; |
||
20 | |||
21 | /** |
||
22 | * @param Requests\TransitionRequest $request |
||
23 | * @return \Illuminate\Http\JsonResponse |
||
24 | */ |
||
25 | public function store(Requests\TransitionRequest $request) |
||
35 | |||
36 | /** |
||
37 | * @param $id |
||
38 | * @return \Illuminate\Http\JsonResponse |
||
39 | */ |
||
40 | public function destroy($id) |
||
45 | } |
||
46 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.