1 | <?php |
||
9 | class Reauthenticate |
||
10 | { |
||
11 | /** |
||
12 | * Handle an incoming request. |
||
13 | * |
||
14 | * @param \Illuminate\Http\Request $request |
||
15 | * @param \Closure $next |
||
16 | * @param string $type |
||
17 | * @param string $sessionName |
||
|
|||
18 | * @param int $timeout |
||
19 | * @param bool $renew |
||
20 | * |
||
21 | * @return mixed |
||
22 | */ |
||
23 | public function handle($request, Closure $next, string $type = 'password', string $sessionName = null, int $timeout = null, bool $renew = false) |
||
40 | } |
||
41 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.