1 | <?php |
||
16 | class ErrorEvent extends CoreEvent |
||
17 | { |
||
18 | /** |
||
19 | * Constructor |
||
20 | * |
||
21 | * @param \Exception $exception |
||
22 | * @param Application $app |
||
23 | * @param Context $context |
||
|
|||
24 | * |
||
25 | * @return void |
||
26 | */ |
||
27 | 3 | public function __construct(\Exception $exception, Application $app, |
|
37 | |||
38 | /** |
||
39 | * Gets the Exception |
||
40 | * |
||
41 | * @return \Exception |
||
42 | */ |
||
43 | public function getException() |
||
47 | } |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.