| 1 | <?php |
||
| 16 | class ResponseGuestIfAuthenticated |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * The Guard implementation. |
||
| 20 | * |
||
| 21 | * @var Guard |
||
| 22 | */ |
||
| 23 | protected $authService; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Create a new filter instance. |
||
| 27 | * |
||
| 28 | * @param Guard $auth |
||
|
|
|||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | public function __construct(AuthUserServiceContract $authService) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Handle an incoming request. |
||
| 38 | * |
||
| 39 | * @param \Illuminate\Http\Request $request |
||
| 40 | * @param \Closure $next |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | public function handle($request, Closure $next) |
||
| 56 | |||
| 57 | protected function redirect() |
||
| 62 | |||
| 63 | } |
||
| 64 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.