Index: trunk/extensions/Validator/includes/criteria/CriterionItemCount.php |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | /** |
36 | 36 | * @see ParameterCriterion::validate |
37 | 37 | */ |
38 | | - public function validate( ListParameter $parameter ) { |
| 38 | + public function validate( Parameter $parameter ) { |
39 | 39 | $count = count( $parameter->value ); |
40 | 40 | return $count <= $this->upperBound && $count >= $this->lowerBound; |
41 | 41 | } |
Index: trunk/extensions/Validator/includes/criteria/CriterionUniqueItems.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | /** |
27 | 27 | * @see ParameterCriterion::validate |
28 | 28 | */ |
29 | | - public function validate( ListParameter $parameter ) { |
| 29 | + public function validate( Parameter $parameter ) { |
30 | 30 | return count( $parameter->value ) == count( array_unique( $parameter->value ) ); |
31 | 31 | } |
32 | 32 | |
Index: trunk/extensions/Validator/includes/ParserHook.php |
— | — | @@ -97,11 +97,11 @@ |
98 | 98 | * @param minxed $input string or null |
99 | 99 | * @param array $args |
100 | 100 | * @param Parser $parser |
101 | | - * @param PPFrame $frame |
| 101 | + * @param PPFrame $frame Available from 1.16 - commented for bc for now |
102 | 102 | * |
103 | 103 | * @return string |
104 | 104 | */ |
105 | | - public function renderTag( $input, array $args, Parser $parser, PPFrame $frame ) { |
| 105 | + public function renderTag( $input, array $args, Parser $parser /*, PPFrame $frame*/ ) { |
106 | 106 | $this->parser = $parser; |
107 | 107 | |
108 | 108 | $defaultParam = array_shift( $this->getDefaultParameters() ); |