1 | <?php |
||
12 | class ResponseEvent extends CoreEvent |
||
13 | { |
||
14 | protected $response; |
||
15 | |||
16 | /** |
||
17 | * Constructor |
||
18 | * |
||
19 | * @param Response $response |
||
20 | * @param Application $app |
||
21 | * @param Context $context |
||
|
|||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | 18 | public function __construct(Response $response, Application $app, |
|
35 | |||
36 | public function getResponse() |
||
40 | } |
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.