From 32b4d22434e92fa8eaa3e808c95c0dc8f07c063e Mon Sep 17 00:00:00 2001 From: "Elliot J. Reed" Date: Sun, 15 Dec 2024 11:15:36 +0000 Subject: [PATCH] Adds PHP 8.4 testing on GitHub Actions. Minimum PHP version now set to 8.2. --- .github/workflows/php.yml | 18 ++---------------- README.md | 2 +- composer.json | 12 ++++++------ phpunit.xml | 2 +- 4 files changed, 10 insertions(+), 24 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index eebcfc3..e43abad 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -8,10 +8,10 @@ jobs: fail-fast: false matrix: operating-system: [ubuntu-latest] - php-versions: ['8.1', '8.2', '8.3'] + php-versions: ['8.2', '8.3', '8.4'] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@v2 @@ -20,20 +20,6 @@ jobs: coverage: xdebug tools: cs2pr - - name: Get composer cache directory - id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - - name: Cache composer dependencies - uses: actions/cache@v2 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: ${{ runner.os }}-composer- - - - name: Install Composer dependencies - run: composer install --no-interaction --classmap-authoritative --no-progress - - name: Run PHP Code Sniffer and PHP CS Fixer (dry run) run: PHP_CS_FIXER_IGNORE_ENV=1 composer run-script phpcs:ci diff --git a/README.md b/README.md index da280ba..6720a40 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Towards the bottom of this readme is a list of some of the event codes and their ## Usage -PHP 8.1 or above is required. +PHP 8.2 or above is required. For PHP 8.1 use version 4.2.0. To install the package via [Composer](https://getcomposer.org/download/): diff --git a/composer.json b/composer.json index 5bd9479..844c315 100644 --- a/composer.json +++ b/composer.json @@ -27,17 +27,17 @@ } }, "require": { - "php": "^8.1", + "php": "^8.2", "ext-json": "*", "guzzlehttp/guzzle": "^6.0|^7.0", - "symfony/property-access": "^5.0|^6.0|^7.0", - "symfony/serializer": "^5.0|^6.0|^7.0" + "symfony/property-access": "^6.0|^7.0", + "symfony/serializer": "^6.0|^7.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.62", - "phpunit/phpunit": "^10.5|^11.3", + "friendsofphp/php-cs-fixer": "*", + "phpunit/phpunit": "^11.5", "roave/security-advisories": "dev-master", - "squizlabs/php_codesniffer": "^3.10" + "squizlabs/php_codesniffer": "*" }, "scripts": { "test": [ diff --git a/phpunit.xml b/phpunit.xml index 2bb3397..3400638 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,5 +1,5 @@ - +