@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | * ``` |
441 | 441 | * |
442 | 442 | * @param string $field The name of the field from which the rule will be added |
443 | - * @param array|string $name The alias for a single rule or multiple rules array |
|
443 | + * @param string $name The alias for a single rule or multiple rules array |
|
444 | 444 | * @param array|\Cake\Validation\ValidationRule $rule the rule to add |
445 | 445 | * @return $this |
446 | 446 | */ |
@@ -801,7 +801,7 @@ discard block |
||
801 | 801 | * A deprecation warning will be emitted when a deprecated form |
802 | 802 | * is used. |
803 | 803 | * |
804 | - * @param mixed $first The message or when to be sorted. |
|
804 | + * @param string|null $first The message or when to be sorted. |
|
805 | 805 | * @param mixed $second The message or when to be sorted. |
806 | 806 | * @param string $method The called method |
807 | 807 | * @return array A list of [$message, $when] |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | * - `ym` 2006/12 or 06/12 separators can be a space, period, dash, forward slash |
495 | 495 | * - `y` 2006 just the year without any separators |
496 | 496 | * |
497 | - * @param string|\DateTimeInterface $check a valid date string/object |
|
497 | + * @param string $check a valid date string/object |
|
498 | 498 | * @param string|array $format Use a string or an array of the keys above. |
499 | 499 | * Arrays should be passed as ['dmy', 'mdy', etc] |
500 | 500 | * @param string|null $regex If a custom regular expression is used this is the only validation that will occur. |
@@ -605,7 +605,7 @@ discard block |
||
605 | 605 | * Validates an iso8601 datetime format |
606 | 606 | * ISO8601 recognize datetime like 2019 as a valid date. To validate and check date integrity, use @see \Cake\Validation\Validation::datetime() |
607 | 607 | * |
608 | - * @param string|\DateTimeInterface $check Value to check |
|
608 | + * @param string $check Value to check |
|
609 | 609 | * |
610 | 610 | * @return bool True if the value is valid, false otherwise |
611 | 611 | * |
@@ -1151,7 +1151,7 @@ discard block |
||
1151 | 1151 | /** |
1152 | 1152 | * Luhn algorithm |
1153 | 1153 | * |
1154 | - * @param string|array $check Value to check. |
|
1154 | + * @param string $check Value to check. |
|
1155 | 1155 | * @return bool Success |
1156 | 1156 | * @see https://en.wikipedia.org/wiki/Luhn_algorithm |
1157 | 1157 | */ |