1 | <?php |
||
5 | class AdminController extends Controller |
||
6 | { |
||
7 | protected $data = []; // the information we send to the view |
||
8 | |||
9 | /** |
||
10 | * Create a new controller instance. |
||
11 | */ |
||
12 | public function __construct() |
||
16 | |||
17 | /** |
||
18 | * Show the admin dashboard. |
||
19 | * |
||
20 | * @return \Illuminate\Http\Response |
||
21 | */ |
||
22 | public function dashboard() |
||
28 | |||
29 | /** |
||
30 | * Redirect to the dashboard. |
||
31 | * |
||
32 | * @return \Illuminate\Routing\Redirector|\Illuminate\Http\RedirectResponse |
||
33 | */ |
||
34 | public function redirect() |
||
39 | } |
||
40 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.