Skip to content

Commit d911961

Browse files
committed
docs: change string|null to array|bool|float|int|object|string|null
1 parent a638c56 commit d911961

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

system/Validation/StrictRules/Rules.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function differs($str, string $field, array $data): bool
4646
/**
4747
* Equals the static value provided.
4848
*
49-
* @param string|null $str
49+
* @param array|bool|float|int|object|string|null $str
5050
*/
5151
public function equals($str, string $val): bool
5252
{
@@ -113,7 +113,7 @@ public function greater_than_equal_to($str, string $min): bool
113113
* is_not_unique[table.field,where_field,where_value]
114114
* is_not_unique[menu.id,active,1]
115115
*
116-
* @param string|null $str
116+
* @param array|bool|float|int|object|string|null $str
117117
*/
118118
public function is_not_unique($str, string $field, array $data): bool
119119
{
@@ -147,7 +147,7 @@ public function in_list($value, string $list): bool
147147
* is_unique[table.field,ignore_field,ignore_value]
148148
* is_unique[users.email,id,5]
149149
*
150-
* @param string|null $str
150+
* @param array|bool|float|int|object|string|null $str
151151
*/
152152
public function is_unique($str, string $field, array $data): bool
153153
{
@@ -240,7 +240,7 @@ public function min_length($str, string $val): bool
240240
/**
241241
* Does not equal the static value provided.
242242
*
243-
* @param string|null $str
243+
* @param array|bool|float|int|object|string|null $str
244244
*/
245245
public function not_equals($str, string $val): bool
246246
{
@@ -285,9 +285,9 @@ public function required($str = null): bool
285285
*
286286
* required_with[password]
287287
*
288-
* @param string|null $str
289-
* @param string|null $fields List of fields that we should check if present
290-
* @param array $data Complete list of fields from the form
288+
* @param array|bool|float|int|object|string|null $str
289+
* @param string|null $fields List of fields that we should check if present
290+
* @param array $data Complete list of fields from the form
291291
*/
292292
public function required_with($str = null, ?string $fields = null, array $data = []): bool
293293
{
@@ -302,9 +302,9 @@ public function required_with($str = null, ?string $fields = null, array $data =
302302
*
303303
* required_without[id,email]
304304
*
305-
* @param string|null $str
306-
* @param string|null $otherFields The param fields of required_without[].
307-
* @param string|null $field This rule param fields aren't present, this field is required.
305+
* @param array|bool|float|int|object|string|null $str
306+
* @param string|null $otherFields The param fields of required_without[].
307+
* @param string|null $field This rule param fields aren't present, this field is required.
308308
*/
309309
public function required_without($str = null, ?string $otherFields = null, array $data = [], ?string $error = null, ?string $field = null): bool
310310
{

0 commit comments

Comments
 (0)