File tree Expand file tree Collapse file tree 6 files changed +9
-15
lines changed
Expand file tree Collapse file tree 6 files changed +9
-15
lines changed Original file line number Diff line number Diff line change 44[ ![ Total Downloads] ( https://poser.pugx.org/darkwebdesign/symfony-addon-constraints/downloads?format=flat )] ( https://packagist.org/packages/darkwebdesign/symfony-addon-constraints )
55[ ![ License] ( https://poser.pugx.org/darkwebdesign/symfony-addon-constraints/license?format=flat )] ( https://packagist.org/packages/darkwebdesign/symfony-addon-constraints )
66
7- [ ![ Build Status] ( https://github.com/darkwebdesign/symfony-addon-constraints/actions/workflows/build.yaml/badge.svg?branch=6.2 )] ( https://github.com/darkwebdesign/symfony-addon-constraints/actions/workflows/build.yaml )
8- [ ![ Coverage Status] ( https://codecov.io/gh/darkwebdesign/symfony-addon-constraints/branch/6.2 /graph/badge.svg )] ( https://codecov.io/gh/darkwebdesign/symfony-addon-constraints )
7+ [ ![ Build Status] ( https://github.com/darkwebdesign/symfony-addon-constraints/actions/workflows/build.yaml/badge.svg?branch=6.4 )] ( https://github.com/darkwebdesign/symfony-addon-constraints/actions/workflows/build.yaml )
8+ [ ![ Coverage Status] ( https://codecov.io/gh/darkwebdesign/symfony-addon-constraints/branch/6.4 /graph/badge.svg )] ( https://codecov.io/gh/darkwebdesign/symfony-addon-constraints )
99[ ![ PHP Version] ( https://img.shields.io/badge/php-8.1%2B-777BB3.svg )] ( https://php.net/ )
10- [ ![ Symfony Version] ( https://img.shields.io/badge/symfony-6.2 -93C74B.svg )] ( https://symfony.com/ )
10+ [ ![ Symfony Version] ( https://img.shields.io/badge/symfony-6.4 -93C74B.svg )] ( https://symfony.com/ )
1111
1212Symfony Add-on Constraints is a collection of extra Symfony validation constraints that you can use in your Symfony
1313applications.
1414
15- Learn more about it in its [ documentation] ( https://darkwebdesign.github.io/symfony-addon-pack/docs/6.2 ) .
15+ Learn more about it in its [ documentation] ( https://darkwebdesign.github.io/symfony-addon-pack/docs/6.4 ) .
1616
1717## Features
1818
Original file line number Diff line number Diff line change 1111 "require" : {
1212 "ext-json" : " *" ,
1313 "php" : " ^8.1" ,
14- "symfony/validator" : " 6.2 .*"
14+ "symfony/validator" : " 6.4 .*"
1515 },
1616 "require-dev" : {
1717 "friendsofphp/php-cs-fixer" : " ^3.58" ,
Original file line number Diff line number Diff line change 1313 ])
1414 ->withSets ([
1515 LevelSetList::UP_TO_PHP_81 ,
16- SymfonySetList::SYMFONY_62 ,
16+ SymfonySetList::SYMFONY_64 ,
1717 ])
1818 ->withImportNames (
1919 importShortClasses: false ,
Original file line number Diff line number Diff line change 2525use Symfony \Component \Validator \Constraint ;
2626
2727/**
28- * @Annotation
29- * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
30- *
3128 * @author Raymond Schouten
3229 *
3330 * @since 2.3
3431 */
32+ #[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD )]
3533class Bsn extends Constraint
3634{
3735 public string $ message = 'This value is not a valid Dutch social security number (BSN). ' ;
Original file line number Diff line number Diff line change 2727use Symfony \Component \Validator \Exception \ConstraintDefinitionException ;
2828
2929/**
30- * @Annotation
31- * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
32- *
3330 * @author Raymond Schouten
3431 *
3532 * @since 2.3
3633 */
34+ #[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE )]
3735class Collection extends Constraint
3836{
3937 /** @var Constraint[] */
Original file line number Diff line number Diff line change 2525use Symfony \Component \Validator \Constraint ;
2626
2727/**
28- * @Annotation
29- * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
30- *
3128 * @author Raymond Schouten
3229 *
3330 * @since 2.3
3431 */
32+ #[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD )]
3533class Json extends Constraint
3634{
3735 public string $ message = 'This value is not valid JSON. ' ;
You can’t perform that action at this time.
0 commit comments