From c2a616510458d4330c472ecccd5668ab96e5f1d2 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 13 Nov 2023 12:42:07 +0100 Subject: [PATCH] feat: drop support for symfony 4 (#246) * feat: drop support for symfony 4 --------- Co-authored-by: Christopher Georg --- .github/workflows/tests.yml | 6 +----- composer.json | 23 ++++++++++++----------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f55e3d0e..3beee7b5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,10 +19,6 @@ jobs: - php-version: 7.4 # Use "update" instead of "install" since it allows using the "--prefer-lowest" option composer-flags: "update --prefer-lowest" - - php-version: 7.4 - # add a specific job to test Symfony 4.4, otherwise Symfony 5.4 would be installed - symfony-version: "^4.4" - composer-flags: "require --dev --no-progress doctrine/annotations:^1.8.0" - php-version: 7.4 # add a specific job to test 5.4 for all Symfony packages symfony-version: "^5.4" @@ -61,7 +57,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php diff --git a/composer.json b/composer.json index b03671e0..f4d70e67 100644 --- a/composer.json +++ b/composer.json @@ -19,27 +19,27 @@ "doctrine/common": "^2.13 || ^3.0", "doctrine/persistence": "^1.3.3 || ^2.0 || ^3.0", "symfony/deprecation-contracts": "^2.1 || ^3.0", - "symfony/event-dispatcher": "^4.4 || ^5.4 || ^6.3", + "symfony/event-dispatcher": "^5.4 || ^6.3", "symfony/event-dispatcher-contracts": "^1 || ^2 || ^3", - "symfony/framework-bundle": "^4.4 || ^5.4 || ^6.3", - "symfony/yaml": "^4.4 || ^5.4 || ^6.3" + "symfony/framework-bundle": "^5.4 || ^6.3", + "symfony/yaml": "^5.4 || ^6.3" }, "require-dev": { "doctrine/annotations": "^1.8.0 || ^2.0", "doctrine/data-fixtures": "^1.3", "doctrine/doctrine-bundle": "^2.1", - "doctrine/doctrine-fixtures-bundle": "^3.0.2", + "doctrine/doctrine-fixtures-bundle": "^3.4.4", "doctrine/orm": "^2.7", - "doctrine/phpcr-bundle": "^2.0.2", - "doctrine/phpcr-odm": "^1.3", + "doctrine/phpcr-bundle": "^2.4.3", + "doctrine/phpcr-odm": "^1.7.2", "jackalope/jackalope-doctrine-dbal": "^1.5", "monolog/monolog": "^1.25.1 || ^2.0 || ^3.0", "phpunit/phpunit": "^9.6 || ^10.0", - "symfony/doctrine-bridge": "^4.4 || ^5.4 || ^6.3", - "symfony/monolog-bridge": "^4.4 || ^5.4 || ^6.3", + "symfony/doctrine-bridge": "^5.4 || ^6.3", + "symfony/monolog-bridge": "^5.4 || ^6.3", "symfony/monolog-bundle": "^3.2", - "symfony/phpunit-bridge": "^4.4 || ^5.4 || ^6.3", - "theofidry/alice-data-fixtures": "^1.0.1" + "symfony/phpunit-bridge": "^5.4 || ^6.3", + "theofidry/alice-data-fixtures": "^1.5.2" }, "conflict": { "doctrine/annotations": "<1.2.7 || >=3.0", @@ -66,7 +66,8 @@ "sort-packages": true, "allow-plugins": { "composer/package-versions-deprecated": true, - "symfony/flex": true + "symfony/flex": true, + "ocramius/package-versions": true } }, "extra": {