1 | <?php |
||
17 | class JobFailedEvent extends Event |
||
18 | { |
||
19 | /** |
||
20 | * The connection name. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $connectionName; |
||
25 | |||
26 | /** |
||
27 | * The job instance. |
||
28 | * |
||
29 | * @var JobContractInterface |
||
30 | */ |
||
31 | protected $job; |
||
32 | |||
33 | /** |
||
34 | * The exception that caused the job to fail. |
||
35 | * |
||
36 | * @var \Exception |
||
37 | */ |
||
38 | protected $exception; |
||
39 | |||
40 | /** |
||
41 | * Create a new event instance. |
||
42 | * |
||
43 | * @param string $connectionName |
||
44 | * @param JobContractInterface $job |
||
45 | * @param Exception $exception |
||
46 | * @param array $config |
||
|
|||
47 | */ |
||
48 | public function __construct(string $connectionName, JobContractInterface $job, Exception $exception) |
||
54 | |||
55 | /** |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getConnectionName(): string |
||
62 | |||
63 | /** |
||
64 | * @return JobContractInterface |
||
65 | */ |
||
66 | public function getJob(): JobContractInterface |
||
70 | |||
71 | /** |
||
72 | * @return Exception |
||
73 | */ |
||
74 | public function getException(): Exception |
||
78 | } |
||
79 |
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.