From 891ad750b1a630586cf2a566b700c7fd8892d7a2 Mon Sep 17 00:00:00 2001 From: Fabian Grutschus Date: Wed, 24 Jan 2024 13:54:58 +0100 Subject: [PATCH] Added support for PHP 8.3 --- .github/workflows/unit.yml | 12 +++++++----- .gitignore | 1 + composer.json | 8 ++++---- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 9bf3acc..17f3e55 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -20,15 +20,17 @@ jobs: - version: "8.0" composer-args: "" - version: "8.1" - composer-args: "--ignore-platform-req=php" + composer-args: "" - version: "8.2" - composer-args: "--ignore-platform-req=php" + composer-args: "" + - version: "8.3" + composer-args: "" prefer-lowest: ["", "--prefer-lowest"] name: Unit Tests - PHP ${{ matrix.php.version }} ${{ matrix.prefer-lowest }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install PHP uses: shivammathur/setup-php@v2 @@ -40,7 +42,7 @@ jobs: - name: Cache Composer packages id: composer-cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: vendor key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} @@ -51,4 +53,4 @@ jobs: run: composer update --prefer-dist --no-progress ${{ matrix.prefer-lowest }} ${{ matrix.php.composer-args }} - name: Run test suite - run: ./vendor/bin/phpunit --verbose + run: ./vendor/bin/phpunit diff --git a/.gitignore b/.gitignore index 60b08c1..ea71828 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /vendor/ phpunit.xml .phpunit.result.cache +composer.lock diff --git a/composer.json b/composer.json index ca0cc85..1011263 100644 --- a/composer.json +++ b/composer.json @@ -11,13 +11,13 @@ ], "minimum-stability": "stable", "require": { - "php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0", - "doctrine/doctrine-module": "^3.0 || ^4.0 || ^5.0", + "php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0", + "doctrine/doctrine-module": "^3.0 || ^4.0 || ^5.0 || ^6.0", "doctrine/orm": "^2.5", "fabiang/doctrine-migrations-liquibase": "^2.0", "laminas/laminas-modulemanager": "^2.8", "laminas/laminas-servicemanager": "^3.0", - "symfony/console": "^4.0 || ^5.0 || ^6.0" + "symfony/console": "^4.0 || ^5.0 || ^6.0 || ^7.0" }, "autoload": { "psr-4": { @@ -33,7 +33,7 @@ "fabiang/doctrine-migrations-liquibase-zf": "self.version" }, "require-dev": { - "phpunit/phpunit": "^9.5", + "phpunit/phpunit": "^9.5 || ^10.0", "phpspec/prophecy-phpunit": "^2.0" }, "config": {