Skip to content

Commit 05a615f

Browse files
committed
Bug fixes
1 parent c8a8b24 commit 05a615f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ public static function validateEnum(?string $enum, array $enums, bool $required
10301030
* @return string|null
10311031
* @throws InvalidValidationException
10321032
*/
1033-
public static function validateChar(?string $char, int $minLength, int $maxLength, bool $required, ?string $default): ?string
1033+
public static function validateChar(?string $char, int $minLength = 1, int $maxLength = 50, bool $required = false, ?string $default = null): ?string
10341034
{
10351035
if ($required && $char === null) {
10361036
throw new InvalidValidationException('Char is required');

0 commit comments

Comments
 (0)