Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
riculum committed Apr 17, 2022
1 parent c8a8b24 commit 05a615f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ public static function validateEnum(?string $enum, array $enums, bool $required
* @return string|null
* @throws InvalidValidationException
*/
public static function validateChar(?string $char, int $minLength, int $maxLength, bool $required, ?string $default): ?string
public static function validateChar(?string $char, int $minLength = 1, int $maxLength = 50, bool $required = false, ?string $default = null): ?string
{
if ($required && $char === null) {
throw new InvalidValidationException('Char is required');
Expand Down

0 comments on commit 05a615f

Please sign in to comment.