1 | <?php namespace Modules\User\Http\Controllers\Admin\Account; |
||
8 | class ApiKeysController extends AdminBaseController |
||
9 | { |
||
10 | /** |
||
11 | * @var Authentication |
||
12 | */ |
||
13 | private $auth; |
||
14 | /** |
||
15 | * @var UserTokenRepository |
||
16 | */ |
||
17 | private $userToken; |
||
18 | |||
19 | public function __construct(Authentication $auth, UserTokenRepository $userToken) |
||
26 | |||
27 | public function index() |
||
35 | |||
36 | public function create() |
||
44 | |||
45 | public function destroy(UserToken $userToken) |
||
53 | } |
||
54 |
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.