From e5d1b7e31f359f05a0c4228dba6f99fce50e34e3 Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Sun, 24 Dec 2023 01:45:21 +0100 Subject: [PATCH 1/4] Drop old PHP --- .github/workflows/ci.yaml | 2 +- composer.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e013876..75c053b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2] + php: [7.4, 8.0, 8.1, 8.2] composer-flags: ['', '--prefer-lowest'] fail-fast: true steps: diff --git a/composer.json b/composer.json index fd51918..aaef541 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "bin-dir": "bin/" }, "require": { - "php": ">=7.2", + "php": ">=7.4", "hoa/ruler": "~2.0", "hoa/consistency": "^1.17.05", @@ -41,7 +41,7 @@ "ext-json": "*", "mikey179/vfsstream": "^1.6.7", - "phpspec/phpspec": "^6.1.1|^7.0", + "phpspec/phpspec": "^7.0", "behat/behat": "~3.0", From ef3fb53b25cbe798f2cf245d62724ed0e8837713 Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Sun, 24 Dec 2023 01:45:48 +0100 Subject: [PATCH 2/4] Drop old Symfony --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index aaef541..d33c7c7 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "hoa/ruler": "~2.0", "hoa/consistency": "^1.17.05", - "symfony/property-access": "~3.0|~4.0|~5.0" + "symfony/property-access": "~4.0|~5.0" }, "require-dev": { "ext-json": "*", From fd0cb7d173628e3651bfb730c53b54ebb34cb88c Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Sun, 24 Dec 2023 01:47:45 +0100 Subject: [PATCH 3/4] Use last minors of Symfony --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d33c7c7..2ec979b 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "hoa/ruler": "~2.0", "hoa/consistency": "^1.17.05", - "symfony/property-access": "~4.0|~5.0" + "symfony/property-access": "^4.4|^5.4" }, "require-dev": { "ext-json": "*", From 56d02bea04bfc6f2ee55b8dd62ad41762b878101 Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Sun, 24 Dec 2023 01:48:15 +0100 Subject: [PATCH 4/4] Test Symfony versions --- .github/workflows/ci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 75c053b..7b145d4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,6 +13,7 @@ jobs: strategy: matrix: php: [7.4, 8.0, 8.1, 8.2] + symfony-version: [4.4.*, 5.4.*] composer-flags: ['', '--prefer-lowest'] fail-fast: true steps: @@ -23,6 +24,7 @@ jobs: with: php-version: ${{ matrix.php }} coverage: none + tools: flex - name: Get composer cache directory id: composer-cache @@ -36,6 +38,8 @@ jobs: restore-keys: ${{ runner.os }}-composer- - name: Install dependencies + env: + SYMFONY_REQUIRE: ${{ matrix.symfony-version }} run: composer update --prefer-dist --no-interaction ${{ matrix.composer-flags }} - run: make tests