From 88617f75e6c726ac544c9c0e878ee1fcc0d1bbf2 Mon Sep 17 00:00:00 2001 From: arnold Date: Wed, 28 Aug 2024 17:10:33 +0200 Subject: [PATCH] Set PHP 8.1 as minimum version Use PHP 8.2 in Scrutinizer GitHub actions; PHP 8.1, 8.2 and 8.3 --- .github/workflows/php.yml | 9 ++++----- .scrutinizer.yml | 2 +- composer.json | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index fc44d31..227bfde 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -13,14 +13,13 @@ jobs: fail-fast: false matrix: include: - - php: 7.4 + - php: 8.1 composer: '--prefer-lowest' desc: "Lowest versions" - - php: 7.4 - coverage: '--coverage-clover /tmp/clover.xml' - - php: 8.0 - php: 8.1 - php: 8.2 + coverage: '--coverage-clover /tmp/clover.xml' + - php: 8.3 name: PHP ${{ matrix.php }} ${{ matrix.desc }} steps: @@ -36,7 +35,7 @@ jobs: run: composer validate - name: Install dependencies - run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer }} + run: composer update --prefer-dist --no-progress ${{ matrix.composer }} - name: Run PHPUnit run: vendor/bin/phpunit ${{ matrix.coverage }} diff --git a/.scrutinizer.yml b/.scrutinizer.yml index f4950bb..1999fdc 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -8,7 +8,7 @@ build: nodes: analysis: environment: - php: 7.4 + php: 8.2 postgresql: false redis: false mongodb: false diff --git a/composer.json b/composer.json index 69d659e..4ebf15b 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ } ], "require": { - "php": ">=7.4.0", + "php": ">=8.1.0", "improved/iterable": "^0.1.4", "jasny/immutable": "^2.1", "nesbot/carbon": "^2.27",