Skip to content

Commit dfe17b4

Browse files
Merge branch '6.4' of github.com:darkwebdesign/symfony-addon-pack
2 parents cc5d719 + 469c3c3 commit dfe17b4

File tree

6 files changed

+9
-15
lines changed

6 files changed

+9
-15
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
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

1212
Symfony Add-on Constraints is a collection of extra Symfony validation constraints that you can use in your Symfony
1313
applications.
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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
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",

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
])
1414
->withSets([
1515
LevelSetList::UP_TO_PHP_81,
16-
SymfonySetList::SYMFONY_62,
16+
SymfonySetList::SYMFONY_64,
1717
])
1818
->withImportNames(
1919
importShortClasses: false,

src/Bsn.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@
2525
use 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)]
3533
class Bsn extends Constraint
3634
{
3735
public string $message = 'This value is not a valid Dutch social security number (BSN).';

src/Collection.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@
2727
use 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)]
3735
class Collection extends Constraint
3836
{
3937
/** @var Constraint[] */

src/Json.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@
2525
use 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)]
3533
class Json extends Constraint
3634
{
3735
public string $message = 'This value is not valid JSON.';

0 commit comments

Comments
 (0)