@@ -46,7 +46,7 @@ public function differs($str, string $field, array $data): bool
46
46
/**
47
47
* Equals the static value provided.
48
48
*
49
- * @param string|null $str
49
+ * @param array|bool|float|int|object| string|null $str
50
50
*/
51
51
public function equals ($ str , string $ val ): bool
52
52
{
@@ -113,7 +113,7 @@ public function greater_than_equal_to($str, string $min): bool
113
113
* is_not_unique[table.field,where_field,where_value]
114
114
* is_not_unique[menu.id,active,1]
115
115
*
116
- * @param string|null $str
116
+ * @param array|bool|float|int|object| string|null $str
117
117
*/
118
118
public function is_not_unique ($ str , string $ field , array $ data ): bool
119
119
{
@@ -147,7 +147,7 @@ public function in_list($value, string $list): bool
147
147
* is_unique[table.field,ignore_field,ignore_value]
148
148
* is_unique[users.email,id,5]
149
149
*
150
- * @param string|null $str
150
+ * @param array|bool|float|int|object| string|null $str
151
151
*/
152
152
public function is_unique ($ str , string $ field , array $ data ): bool
153
153
{
@@ -240,7 +240,7 @@ public function min_length($str, string $val): bool
240
240
/**
241
241
* Does not equal the static value provided.
242
242
*
243
- * @param string|null $str
243
+ * @param array|bool|float|int|object| string|null $str
244
244
*/
245
245
public function not_equals ($ str , string $ val ): bool
246
246
{
@@ -285,9 +285,9 @@ public function required($str = null): bool
285
285
*
286
286
* required_with[password]
287
287
*
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
291
291
*/
292
292
public function required_with ($ str = null , ?string $ fields = null , array $ data = []): bool
293
293
{
@@ -302,9 +302,9 @@ public function required_with($str = null, ?string $fields = null, array $data =
302
302
*
303
303
* required_without[id,email]
304
304
*
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.
308
308
*/
309
309
public function required_without ($ str = null , ?string $ otherFields = null , array $ data = [], ?string $ error = null , ?string $ field = null ): bool
310
310
{
0 commit comments