1 | <?php |
||
16 | class JobProcessingEvent extends Event |
||
17 | { |
||
18 | /** |
||
19 | * The connection name. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $connectionName; |
||
24 | |||
25 | /** |
||
26 | * The job instance. |
||
27 | * |
||
28 | * @var JobContractInterface |
||
29 | */ |
||
30 | protected $job; |
||
31 | |||
32 | /** |
||
33 | * Create a new event instance. |
||
34 | * |
||
35 | * @param string $connectionName |
||
36 | * @param JobContractInterface $job |
||
37 | * @param array $config |
||
|
|||
38 | */ |
||
39 | public function __construct(string $connectionName, JobContractInterface $job) |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getConnectionName(): string |
||
52 | |||
53 | /** |
||
54 | * @return JobContractInterface |
||
55 | */ |
||
56 | public function getJob(): JobContractInterface |
||
60 | } |
||
61 |
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.