1 | <?php |
||
7 | class EventServiceProvider extends ServiceProvider |
||
8 | { |
||
9 | /** |
||
10 | * The event handler mappings for the application. |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $listen = [ |
||
15 | 'PiFinder\Events\ServerWasPoked' => [ |
||
16 | 'PiFinder\Handlers\Events\NotifyUsersAboutPoke', |
||
17 | 'PiFinder\Handlers\Events\UpdateStatistics', |
||
18 | ], |
||
19 | ]; |
||
20 | |||
21 | /** |
||
22 | * Register any other events for your application. |
||
23 | * |
||
24 | * @param \Illuminate\Contracts\Events\Dispatcher $events |
||
|
|||
25 | */ |
||
26 | 9 | public function boot() |
|
32 | } |
||
33 |
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.