1 | <?php |
||
9 | class PHPInfoTask extends BuildTask |
||
10 | { |
||
11 | /** |
||
12 | * title of the task |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | public $title = 'Display PHPInfo information'; |
||
17 | |||
18 | /** |
||
19 | * description of the task |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | public $description = 'Displays the output of phpinfo() for this environment.'; |
||
24 | |||
25 | /** |
||
26 | * @param SS_HTTPResponse $request |
||
|
|||
27 | */ |
||
28 | public function run($request = null) |
||
36 | |||
37 | /** |
||
38 | * @param string $text |
||
39 | */ |
||
40 | protected function message($text) |
||
48 | } |
||
49 |
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.