From a2d4cd4541b56e76e2bc60fa0205889d8b79f1d4 Mon Sep 17 00:00:00 2001 From: Dmitry Kaufman Date: Wed, 22 Jan 2025 18:51:34 +0700 Subject: [PATCH] SPT-234 fix enum fias level, ci, composer.json --- .github/workflows/composer.yml | 22 ++++++++++++++++--- .php-cs-fixer.dist.php | 1 + composer.json | 10 ++++----- src/Infrastructure/Composer/function.php | 1 + .../HttpClient/ConfigurationClient.php | 1 + .../Exception/BadRequestException.php | 1 + .../HttpClient/Exception/DaDataException.php | 1 + .../Exception/ForbiddenException.php | 1 + .../InternalServerErrorException.php | 1 + .../Exception/NotFoundException.php | 1 + .../Exception/UnauthorizedException.php | 1 + src/Infrastructure/HttpClient/HttpClient.php | 1 + .../Middleware/AuthorizationMiddleware.php | 1 + .../Middleware/ClientErrorMiddleware.php | 1 + .../Middleware/InternalServerMiddleware.php | 1 + .../HttpClient/Middleware/Middleware.php | 1 + .../Middleware/PipelineMiddleware.php | 1 + .../HttpClient/Middleware/UrlMiddleware.php | 1 + .../Serializer/CountryIsoNormalizer.php | 3 ++- .../Serializer/EnumNormalizer.php | 1 + .../FiasActualityStateNormalizer.php | 3 ++- .../Serializer/MoneyNormalizer.php | 4 ++++ .../Serializer/PhoneNumberNormalizer.php | 3 ++- .../Serializer/RegionIsoNormalizer.php | 3 ++- src/Response/CountryIso.php | 1 + src/Response/FiasActualityState.php | 1 + src/Response/FiasLevel.php | 14 ++++++++++++ src/Response/Metro.php | 1 + src/Response/Organization.php | 1 + src/Response/OrganizationBranchType.php | 1 + src/Response/OrganizationName.php | 1 + src/Response/OrganizationOpf.php | 1 + src/Response/OrganizationState.php | 1 + src/Response/OrganizationStateStatus.php | 1 + src/Response/OrganizationType.php | 1 + src/Response/RegionIso.php | 1 + src/Response/SuggestAddress.php | 1 + src/Response/SuggestOrganization.php | 1 + src/RestClientBuilder.php | 1 + src/SuggestAddressClient.php | 1 + src/SuggestOrganizationClient.php | 1 + src/Transport/RestSuggestAddressClient.php | 1 + .../RestSuggestOrganizationClient.php | 1 + 43 files changed, 85 insertions(+), 12 deletions(-) diff --git a/.github/workflows/composer.yml b/.github/workflows/composer.yml index e6fc883..f039aa5 100644 --- a/.github/workflows/composer.yml +++ b/.github/workflows/composer.yml @@ -22,19 +22,35 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: [ 7.4, 8.0, 8.1, 8.2 ] + data: [ + { symfony: '5.4.*', php: 7.4 }, + { symfony: '5.4.*', php: 8.0 }, + { symfony: '5.4.*', php: 8.1 }, + { symfony: '5.4.*', php: 8.2 }, + + { symfony: '6.4.*', php: 8.1 }, + { symfony: '6.4.*', php: 8.2 }, + + { symfony: '7.1.*', php: 8.2 }, + + { symfony: '7.2.*', php: 8.2 }, + ] + steps: - uses: actions/checkout@v3.3.0 - name: Install Infrastructure uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php }} - tools: composer:v2 + php-version: ${{ matrix.data.php }} + tools: composer:v2, flex coverage: none - name: Install Dependence and audit + env: + SYMFONY_REQUIRE: ${{ matrix.data.symfony }} uses: ramsey/composer-install@v2 with: composer-options: --optimize-autoloader + dependency-versions: "highest" - run: composer audit \ No newline at end of file diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 42a3d0f..00fc34d 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -1,4 +1,5 @@ $context diff --git a/src/Infrastructure/Serializer/EnumNormalizer.php b/src/Infrastructure/Serializer/EnumNormalizer.php index ddef9ac..5cb5d9e 100644 --- a/src/Infrastructure/Serializer/EnumNormalizer.php +++ b/src/Infrastructure/Serializer/EnumNormalizer.php @@ -1,4 +1,5 @@ $context diff --git a/src/Infrastructure/Serializer/MoneyNormalizer.php b/src/Infrastructure/Serializer/MoneyNormalizer.php index 4d10155..892e4c0 100644 --- a/src/Infrastructure/Serializer/MoneyNormalizer.php +++ b/src/Infrastructure/Serializer/MoneyNormalizer.php @@ -1,4 +1,5 @@ $context diff --git a/src/Infrastructure/Serializer/RegionIsoNormalizer.php b/src/Infrastructure/Serializer/RegionIsoNormalizer.php index 3d396e0..1f2f4c0 100644 --- a/src/Infrastructure/Serializer/RegionIsoNormalizer.php +++ b/src/Infrastructure/Serializer/RegionIsoNormalizer.php @@ -1,4 +1,5 @@ $context diff --git a/src/Response/CountryIso.php b/src/Response/CountryIso.php index 0c27fe8..13dbf85 100644 --- a/src/Response/CountryIso.php +++ b/src/Response/CountryIso.php @@ -1,4 +1,5 @@