1 | <?php |
||
7 | class Sort extends Zend_View_Helper_Abstract |
||
8 | { |
||
9 | /** |
||
10 | * Return an HTML links to be able to sort (will typically be in table header) |
||
11 | * @param string $label |
||
12 | * @param string $column |
||
13 | * @param string $selectedSortKey |
||
14 | * @param string $selectedSortOrder |
||
15 | * @param array $additionalParameters |
||
|
|||
16 | * @return string |
||
17 | */ |
||
18 | 1 | public function sort($label, $column, $selectedSortKey, $selectedSortOrder, array $additionalParameters = null) |
|
34 | } |
||
35 |
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. In addition it looks for parameters that have the generic type
array
and suggests a stricter type likearray<String>
.Most often this is a case of a parameter that can be null in addition to its declared types.