From 5253d2a306bc773d3097c242c54374064f002a51 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Thu, 2 Nov 2023 19:25:50 +0100 Subject: [PATCH] feat: allow symfony 7 (require-dev), remove unsupported symfony 4.4 --- composer.json | 8 ++++---- .../Constraints/AddressFormatConstraintValidatorTest.php | 6 ------ .../Constraints/CountryConstraintValidatorTest.php | 6 ------ 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/composer.json b/composer.json index 695d42e3..1cd65dc9 100644 --- a/composer.json +++ b/composer.json @@ -9,10 +9,10 @@ "doctrine/collections": "^1.6 || ^2.0" }, "require-dev": { - "symfony/validator": "^4.4 || ^5.4 || ^6.0", - "phpunit/phpunit": "^9.5", - "mikey179/vfsstream": "^1.6.10", - "squizlabs/php_codesniffer": "^3.6", + "symfony/validator": "^5.4 || ^6.3 || ^7.0", + "phpunit/phpunit": "^9.6", + "mikey179/vfsstream": "^1.6.11", + "squizlabs/php_codesniffer": "^3.7", "ext-json": "*" }, "suggest": { diff --git a/tests/Validator/Constraints/AddressFormatConstraintValidatorTest.php b/tests/Validator/Constraints/AddressFormatConstraintValidatorTest.php index e9408f1e..e098af0c 100644 --- a/tests/Validator/Constraints/AddressFormatConstraintValidatorTest.php +++ b/tests/Validator/Constraints/AddressFormatConstraintValidatorTest.php @@ -8,7 +8,6 @@ use CommerceGuys\Addressing\AddressFormat\FieldOverrides; use CommerceGuys\Addressing\Validator\Constraints\AddressFormatConstraint; use CommerceGuys\Addressing\Validator\Constraints\AddressFormatConstraintValidator; -use Symfony\Component\Validator\Constraints\NotNull; use Symfony\Component\Validator\Test\ConstraintValidatorTestCase; /** @@ -16,11 +15,6 @@ */ final class AddressFormatConstraintValidatorTest extends ConstraintValidatorTestCase { - /** - * @var AddressFormatConstraint - */ - protected $constraint; - /** * {@inheritdoc} */ diff --git a/tests/Validator/Constraints/CountryConstraintValidatorTest.php b/tests/Validator/Constraints/CountryConstraintValidatorTest.php index 945aa98a..6150055f 100644 --- a/tests/Validator/Constraints/CountryConstraintValidatorTest.php +++ b/tests/Validator/Constraints/CountryConstraintValidatorTest.php @@ -11,12 +11,6 @@ */ final class CountryConstraintValidatorTest extends ConstraintValidatorTestCase { - /** - * @var CountryConstraint - */ - protected $constraint; - - /** * {@inheritdoc} */