Index: trunk/extensions/Validator/Validator_Functions.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | final class ValidatorFunctions { |
25 | 25 | |
26 | 26 | /** |
27 | | - * Returns whether the provided value, which must be a number, is within a certain range. Upper bound not included. |
| 27 | + * Returns whether the provided value, which must be a number, is within a certain range. Upper bound included. |
28 | 28 | * |
29 | 29 | * @param $value |
30 | 30 | * @param $lower |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | if ( ! is_numeric( $value ) ) return false; |
37 | 37 | $value = (int)$value; |
38 | 38 | if ($lower !== false && $value < $lower) return false; |
39 | | - if ($upper !== false && $value >= $upper) return false; |
| 39 | + if ($upper !== false && $value > $upper) return false; |
40 | 40 | return true; |
41 | 41 | } |
42 | 42 | |
— | — | @@ -76,7 +76,7 @@ |
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
80 | | - * Returns whether the length of the value is within a certain range. Upper bound not included. |
| 80 | + * Returns whether the length of the value is within a certain range. Upper bound included. |
81 | 81 | * |
82 | 82 | * @param string $value |
83 | 83 | * @param $lower |
— | — | @@ -89,7 +89,7 @@ |
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
93 | | - * Returns whether the amount of items in the list is within a certain range. Upper bound not included. |
| 93 | + * Returns whether the amount of items in the list is within a certain range. Upper bound included. |
94 | 94 | * |
95 | 95 | * @param array $values |
96 | 96 | * @param $lower |
Index: trunk/extensions/Validator/Validator.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | die( 'Not an entry point.' ); |
26 | 26 | } |
27 | 27 | |
28 | | -define( 'Validator_VERSION', '0.2.1 a1' ); |
| 28 | +define( 'Validator_VERSION', '0.2.1 rc1' ); |
29 | 29 | |
30 | 30 | // Constants indicating the strictness of the parameter validation. |
31 | 31 | define( 'Validator_ERRORS_NONE', 0 ); |