1 | <?php namespace WITR\Services; |
||
6 | class Whitelist { |
||
7 | |||
8 | protected $fromIp; |
||
9 | protected $toIp; |
||
10 | |||
11 | /** |
||
12 | * Create a new filter instance. |
||
13 | * |
||
14 | * @param Guard $auth |
||
|
|||
15 | * @return void |
||
16 | */ |
||
17 | public function __construct($fromIp, $toIp) |
||
22 | |||
23 | /** |
||
24 | * Handle an incoming request. |
||
25 | * |
||
26 | * @param \Illuminate\Http\Request $request |
||
27 | * @param \Closure $next |
||
28 | * @return mixed |
||
29 | */ |
||
30 | public function inRange($request) |
||
39 | |||
40 | } |
||
41 |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.