From 467a0552ff3fd7c01e2244302c2b164744f3e49e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Pimpa=CC=83o?= Date: Sat, 31 May 2025 10:56:11 +0100 Subject: [PATCH] chore: bump symfony/validator version to 7.3 --- composer.json | 10 +++--- src/ChainedValidatorInterface.php | 55 +++++++++++++++++++------------ src/StaticValidatorInterface.php | 55 +++++++++++++++++++------------ 3 files changed, 73 insertions(+), 47 deletions(-) diff --git a/composer.json b/composer.json index dbaa7ed..c4914d4 100644 --- a/composer.json +++ b/composer.json @@ -13,14 +13,14 @@ ], "require": { "php": ">=8.2", - "symfony/config": "^7.2", - "symfony/translation": "^7.2", - "symfony/validator": "^7.2" + "symfony/config": "^7.3", + "symfony/translation": "^7.3", + "symfony/validator": "^7.3" }, "require-dev": { "phpunit/phpunit": "^11.5", - "symfony/console": "^7.2", - "symfony/var-dumper": "^7.2", + "symfony/console": "^7.3", + "symfony/var-dumper": "^7.3", "wyrihaximus/list-classes-in-directory": "^1.7" }, "autoload": { diff --git a/src/ChainedValidatorInterface.php b/src/ChainedValidatorInterface.php index 7f01363..e974133 100644 --- a/src/ChainedValidatorInterface.php +++ b/src/ChainedValidatorInterface.php @@ -41,7 +41,7 @@ public function callback( callable|array|string|null $callback = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function cardScheme( @@ -49,7 +49,7 @@ public function cardScheme( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function cascade( @@ -113,7 +113,7 @@ public function count( ?string $divisibleByMessage = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function country( @@ -151,11 +151,12 @@ public function dateTime( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function disableAutoMapping( ?array $options = null, + mixed $payload = null, ): ChainedValidatorInterface&Validator; public function divisibleBy( @@ -164,7 +165,7 @@ public function divisibleBy( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function email( @@ -178,6 +179,7 @@ public function email( public function enableAutoMapping( ?array $options = null, + mixed $payload = null, ): ChainedValidatorInterface&Validator; public function equalTo( @@ -186,7 +188,7 @@ public function equalTo( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function expression( @@ -195,7 +197,7 @@ public function expression( ?array $values = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ?bool $negate = null, ): ChainedValidatorInterface&Validator; @@ -232,6 +234,9 @@ public function file( mixed $payload = null, array|string|null $extensions = null, ?string $extensionsMessage = null, + ?string $filenameCharset = null, + ?string $filenameCountUnit = null, + ?string $filenameCharsetMessage = null, ): ChainedValidatorInterface&Validator; public function greaterThan( @@ -240,7 +245,7 @@ public function greaterThan( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function greaterThanOrEqual( @@ -249,7 +254,7 @@ public function greaterThanOrEqual( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function hostname( @@ -273,7 +278,7 @@ public function identicalTo( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function image( @@ -323,6 +328,11 @@ public function image( ?string $corruptedMessage = null, ?array $groups = null, mixed $payload = null, + array|string|null $extensions = null, + ?string $extensionsMessage = null, + ?string $filenameCharset = null, + ?string $filenameCountUnit = null, + ?string $filenameCharsetMessage = null, ): ChainedValidatorInterface&Validator; public function ip( @@ -363,7 +373,7 @@ public function isbn( ?string $bothIsbnMessage = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function isin( @@ -410,7 +420,7 @@ public function length( ?string $charsetMessage = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function lessThan( @@ -419,7 +429,7 @@ public function lessThan( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function lessThanOrEqual( @@ -428,7 +438,7 @@ public function lessThanOrEqual( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function locale( @@ -505,7 +515,7 @@ public function notEqualTo( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function notIdenticalTo( @@ -514,7 +524,7 @@ public function notIdenticalTo( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function notNull( @@ -575,7 +585,7 @@ public function regex( ?callable $normalizer = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function required( @@ -605,11 +615,12 @@ public function timezone( ?bool $intlCompatible = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function traverse( array|bool|null $traverse = null, + mixed $payload = null, ): ChainedValidatorInterface&Validator; public function type( @@ -617,7 +628,7 @@ public function type( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public function ulid( @@ -636,6 +647,7 @@ public function unique( mixed $payload = null, array|string|null $fields = null, ?string $errorPath = null, + ?bool $stopOnFirstError = null, ): ChainedValidatorInterface&Validator; public function url( @@ -679,12 +691,13 @@ public function week( ): ChainedValidatorInterface&Validator; public function when( - \Symfony\Component\ExpressionLanguage\Expression|array|string $expression, + \Symfony\Component\ExpressionLanguage\Expression|Closure|array|string $expression, \Symfony\Component\Validator\Constraint|array|null $constraints = null, ?array $values = null, ?array $groups = null, $payload = null, - array $options = [], + ?array $options = null, + \Symfony\Component\Validator\Constraint|array $otherwise = [], ): ChainedValidatorInterface&Validator; public function wordCount( diff --git a/src/StaticValidatorInterface.php b/src/StaticValidatorInterface.php index b6e8408..a8d1b32 100644 --- a/src/StaticValidatorInterface.php +++ b/src/StaticValidatorInterface.php @@ -41,7 +41,7 @@ public static function callback( callable|array|string|null $callback = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function cardScheme( @@ -49,7 +49,7 @@ public static function cardScheme( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function cascade( @@ -113,7 +113,7 @@ public static function count( ?string $divisibleByMessage = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function country( @@ -151,11 +151,12 @@ public static function dateTime( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function disableAutoMapping( ?array $options = null, + mixed $payload = null, ): ChainedValidatorInterface&Validator; public static function divisibleBy( @@ -164,7 +165,7 @@ public static function divisibleBy( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function email( @@ -178,6 +179,7 @@ public static function email( public static function enableAutoMapping( ?array $options = null, + mixed $payload = null, ): ChainedValidatorInterface&Validator; public static function equalTo( @@ -186,7 +188,7 @@ public static function equalTo( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function expression( @@ -195,7 +197,7 @@ public static function expression( ?array $values = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ?bool $negate = null, ): ChainedValidatorInterface&Validator; @@ -232,6 +234,9 @@ public static function file( mixed $payload = null, array|string|null $extensions = null, ?string $extensionsMessage = null, + ?string $filenameCharset = null, + ?string $filenameCountUnit = null, + ?string $filenameCharsetMessage = null, ): ChainedValidatorInterface&Validator; public static function greaterThan( @@ -240,7 +245,7 @@ public static function greaterThan( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function greaterThanOrEqual( @@ -249,7 +254,7 @@ public static function greaterThanOrEqual( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function hostname( @@ -273,7 +278,7 @@ public static function identicalTo( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function image( @@ -323,6 +328,11 @@ public static function image( ?string $corruptedMessage = null, ?array $groups = null, mixed $payload = null, + array|string|null $extensions = null, + ?string $extensionsMessage = null, + ?string $filenameCharset = null, + ?string $filenameCountUnit = null, + ?string $filenameCharsetMessage = null, ): ChainedValidatorInterface&Validator; public static function ip( @@ -363,7 +373,7 @@ public static function isbn( ?string $bothIsbnMessage = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function isin( @@ -410,7 +420,7 @@ public static function length( ?string $charsetMessage = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function lessThan( @@ -419,7 +429,7 @@ public static function lessThan( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function lessThanOrEqual( @@ -428,7 +438,7 @@ public static function lessThanOrEqual( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function locale( @@ -505,7 +515,7 @@ public static function notEqualTo( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function notIdenticalTo( @@ -514,7 +524,7 @@ public static function notIdenticalTo( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function notNull( @@ -575,7 +585,7 @@ public static function regex( ?callable $normalizer = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function required( @@ -605,11 +615,12 @@ public static function timezone( ?bool $intlCompatible = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function traverse( array|bool|null $traverse = null, + mixed $payload = null, ): ChainedValidatorInterface&Validator; public static function type( @@ -617,7 +628,7 @@ public static function type( ?string $message = null, ?array $groups = null, mixed $payload = null, - array $options = [], + ?array $options = null, ): ChainedValidatorInterface&Validator; public static function ulid( @@ -636,6 +647,7 @@ public static function unique( mixed $payload = null, array|string|null $fields = null, ?string $errorPath = null, + ?bool $stopOnFirstError = null, ): ChainedValidatorInterface&Validator; public static function url( @@ -679,12 +691,13 @@ public static function week( ): ChainedValidatorInterface&Validator; public static function when( - \Symfony\Component\ExpressionLanguage\Expression|array|string $expression, + \Symfony\Component\ExpressionLanguage\Expression|Closure|array|string $expression, \Symfony\Component\Validator\Constraint|array|null $constraints = null, ?array $values = null, ?array $groups = null, $payload = null, - array $options = [], + ?array $options = null, + \Symfony\Component\Validator\Constraint|array $otherwise = [], ): ChainedValidatorInterface&Validator; public static function wordCount(