diff --git a/composer.json b/composer.json index 8c7c9417..65b26c68 100644 --- a/composer.json +++ b/composer.json @@ -8,8 +8,8 @@ "ext-dom": "*", "ext-bcmath": "*", "ext-iconv": "*", - "symfony/validator": "^4.4|^5.0|^6.0", - "symfony/intl": "^4.4|^5.0|^6.0", + "symfony/validator": "^4.4|^5.0|^6.0|^7.0.0-BETA2", + "symfony/intl": "^4.4|^5.0|^6.0|^7.0.0-BETA2", "kmukku/php-iso11649": "^1.5", "endroid/qr-code": "^4.4.4|^5.0", "symfony/polyfill-intl-icu": "^1.23" diff --git a/composer.lock b/composer.lock index 690738dd..2520bcb2 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "75c70f4e59f9ec934aa4bf4b6aeb15c8", + "content-hash": "c6b7f117ee2a5b3d2cfce1886def7ae5", "packages": [ { "name": "bacon/bacon-qr-code", @@ -234,94 +234,27 @@ }, "time": "2020-04-21T13:01:17+00:00" }, - { - "name": "symfony/deprecation-contracts", - "version": "v3.3.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf", - "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.4-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, - "autoload": { - "files": [ - "function.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "A generic function and convention to trigger deprecation notices", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.3.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-05-23T14:45:45+00:00" - }, { "name": "symfony/intl", - "version": "v6.3.2", + "version": "v7.0.0-BETA2", "source": { "type": "git", "url": "https://github.com/symfony/intl.git", - "reference": "1f8cb145c869ed089a8531c51a6a4b31ed0b3c69" + "reference": "a2bf3df1fe6ca7ed9aaf2d3f7d7a33b5529b021d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/intl/zipball/1f8cb145c869ed089a8531c51a6a4b31ed0b3c69", - "reference": "1f8cb145c869ed089a8531c51a6a4b31ed0b3c69", + "url": "https://api.github.com/repos/symfony/intl/zipball/a2bf3df1fe6ca7ed9aaf2d3f7d7a33b5529b021d", + "reference": "a2bf3df1fe6ca7ed9aaf2d3f7d7a33b5529b021d", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.2" }, "require-dev": { - "symfony/filesystem": "^5.4|^6.0", - "symfony/finder": "^5.4|^6.0", - "symfony/var-exporter": "^5.4|^6.0" + "symfony/filesystem": "^6.4|^7.0", + "symfony/finder": "^6.4|^7.0", + "symfony/var-exporter": "^6.4|^7.0" }, "type": "library", "autoload": { @@ -365,7 +298,7 @@ "localization" ], "support": { - "source": "https://github.com/symfony/intl/tree/v6.3.2" + "source": "https://github.com/symfony/intl/tree/v7.0.0-BETA2" }, "funding": [ { @@ -381,7 +314,7 @@ "type": "tidelift" } ], - "time": "2023-07-20T07:43:09+00:00" + "time": "2023-10-28T23:12:22+00:00" }, { "name": "symfony/polyfill-ctype", @@ -878,55 +811,53 @@ }, { "name": "symfony/validator", - "version": "v6.3.5", + "version": "v7.0.0-BETA2", "source": { "type": "git", "url": "https://github.com/symfony/validator.git", - "reference": "48e815ba3b5eb72e632588dbf7ea2dc4e608ee47" + "reference": "b1fdb2bf40c29873c71a4d6e08efeae3068f140b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/48e815ba3b5eb72e632588dbf7ea2dc4e608ee47", - "reference": "48e815ba3b5eb72e632588dbf7ea2dc4e608ee47", + "url": "https://api.github.com/repos/symfony/validator/zipball/b1fdb2bf40c29873c71a4d6e08efeae3068f140b", + "reference": "b1fdb2bf40c29873c71a4d6e08efeae3068f140b", "shasum": "" }, "require": { - "php": ">=8.1", - "symfony/deprecation-contracts": "^2.5|^3", + "php": ">=8.2", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-mbstring": "~1.0", "symfony/polyfill-php83": "^1.27", "symfony/translation-contracts": "^2.5|^3" }, "conflict": { - "doctrine/annotations": "<1.13", "doctrine/lexer": "<1.1", - "symfony/dependency-injection": "<5.4", - "symfony/expression-language": "<5.4", - "symfony/http-kernel": "<5.4", - "symfony/intl": "<5.4", - "symfony/property-info": "<5.4", - "symfony/translation": "<5.4", - "symfony/yaml": "<5.4" + "symfony/dependency-injection": "<6.4", + "symfony/doctrine-bridge": "<7.0", + "symfony/expression-language": "<6.4", + "symfony/http-kernel": "<6.4", + "symfony/intl": "<6.4", + "symfony/property-info": "<6.4", + "symfony/translation": "<6.4", + "symfony/yaml": "<6.4" }, "require-dev": { - "doctrine/annotations": "^1.13|^2", "egulias/email-validator": "^2.1.10|^3|^4", - "symfony/cache": "^5.4|^6.0", - "symfony/config": "^5.4|^6.0", - "symfony/console": "^5.4|^6.0", - "symfony/dependency-injection": "^5.4|^6.0", - "symfony/expression-language": "^5.4|^6.0", - "symfony/finder": "^5.4|^6.0", - "symfony/http-client": "^5.4|^6.0", - "symfony/http-foundation": "^5.4|^6.0", - "symfony/http-kernel": "^5.4|^6.0", - "symfony/intl": "^5.4|^6.0", - "symfony/mime": "^5.4|^6.0", - "symfony/property-access": "^5.4|^6.0", - "symfony/property-info": "^5.4|^6.0", - "symfony/translation": "^5.4|^6.0", - "symfony/yaml": "^5.4|^6.0" + "symfony/cache": "^6.4|^7.0", + "symfony/config": "^6.4|^7.0", + "symfony/console": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/expression-language": "^6.4|^7.0", + "symfony/finder": "^6.4|^7.0", + "symfony/http-client": "^6.4|^7.0", + "symfony/http-foundation": "^6.4|^7.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/intl": "^6.4|^7.0", + "symfony/mime": "^6.4|^7.0", + "symfony/property-access": "^6.4|^7.0", + "symfony/property-info": "^6.4|^7.0", + "symfony/translation": "^6.4|^7.0", + "symfony/yaml": "^6.4|^7.0" }, "type": "library", "autoload": { @@ -954,7 +885,7 @@ "description": "Provides tools to validate values", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/validator/tree/v6.3.5" + "source": "https://github.com/symfony/validator/tree/v7.0.0-BETA2" }, "funding": [ { @@ -970,7 +901,7 @@ "type": "tidelift" } ], - "time": "2023-09-29T07:41:15+00:00" + "time": "2023-10-28T23:12:22+00:00" } ], "packages-dev": [ @@ -1415,16 +1346,16 @@ }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.35.1", + "version": "v3.37.1", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "ec1ccc264994b6764882669973ca435cf05bab08" + "reference": "c3fe76976081ab871aa654e872da588077e19679" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/ec1ccc264994b6764882669973ca435cf05bab08", - "reference": "ec1ccc264994b6764882669973ca435cf05bab08", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/c3fe76976081ab871aa654e872da588077e19679", + "reference": "c3fe76976081ab871aa654e872da588077e19679", "shasum": "" }, "require": { @@ -1496,7 +1427,7 @@ ], "support": { "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.35.1" + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.37.1" }, "funding": [ { @@ -1504,7 +1435,7 @@ "type": "github" } ], - "time": "2023-10-12T13:47:26+00:00" + "time": "2023-10-29T20:51:23+00:00" }, { "name": "khanamiryan/qrcode-detector-decoder", @@ -1793,12 +1724,12 @@ "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "348b72ed6d423238d53956694e81492374be6c73" + "reference": "45f9ec0264095bf48d5bd438edfa5a8b993da7ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/348b72ed6d423238d53956694e81492374be6c73", - "reference": "348b72ed6d423238d53956694e81492374be6c73", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/45f9ec0264095bf48d5bd438edfa5a8b993da7ce", + "reference": "45f9ec0264095bf48d5bd438edfa5a8b993da7ce", "shasum": "" }, "require": { @@ -1848,7 +1779,7 @@ "type": "tidelift" } ], - "time": "2023-10-11T17:28:36+00:00" + "time": "2023-11-03T15:13:22+00:00" }, { "name": "phpunit/php-code-coverage", @@ -3597,6 +3528,73 @@ ], "time": "2023-08-16T10:10:12+00:00" }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.3.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf", + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.4-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.3.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-05-23T14:45:45+00:00" + }, { "name": "symfony/event-dispatcher", "version": "v6.3.2", @@ -4608,6 +4606,8 @@ "aliases": [], "minimum-stability": "stable", "stability-flags": { + "symfony/validator": 10, + "symfony/intl": 10, "phpstan/phpstan": 20 }, "prefer-stable": false, diff --git a/tests/Constraints/ValidCreditorInformationPaymentReferenceCombinationTest.php b/tests/Constraints/ValidCreditorInformationPaymentReferenceCombinationTest.php index d5c179f6..53253209 100644 --- a/tests/Constraints/ValidCreditorInformationPaymentReferenceCombinationTest.php +++ b/tests/Constraints/ValidCreditorInformationPaymentReferenceCombinationTest.php @@ -8,11 +8,12 @@ use Sprain\SwissQrBill\DataGroup\Element\CreditorInformation; use Sprain\SwissQrBill\DataGroup\Element\PaymentReference; use Sprain\SwissQrBill\QrBill; +use Symfony\Component\Validator\ConstraintValidatorInterface; use Symfony\Component\Validator\Test\ConstraintValidatorTestCase; final class ValidCreditorInformationPaymentReferenceCombinationTest extends ConstraintValidatorTestCase { - protected function createValidator() + protected function createValidator(): ConstraintValidatorInterface { return new ValidCreditorInformationPaymentReferenceCombinationValidator(); } diff --git a/tests/Constraints/ValidCreditorReferenceTest.php b/tests/Constraints/ValidCreditorReferenceTest.php index 309de310..2c9f84aa 100644 --- a/tests/Constraints/ValidCreditorReferenceTest.php +++ b/tests/Constraints/ValidCreditorReferenceTest.php @@ -4,11 +4,12 @@ use Sprain\SwissQrBill\Constraint\ValidCreditorReference; use Sprain\SwissQrBill\Constraint\ValidCreditorReferenceValidator; +use Symfony\Component\Validator\ConstraintValidatorInterface; use Symfony\Component\Validator\Test\ConstraintValidatorTestCase; final class ValidCreditorReferenceTest extends ConstraintValidatorTestCase { - protected function createValidator() + protected function createValidator(): ConstraintValidatorInterface { return new ValidCreditorReferenceValidator(); }