From 8d0cc4a6c640271770ede2a7b4c1a8573d25c805 Mon Sep 17 00:00:00 2001 From: Dan Mason Date: Wed, 13 Mar 2024 13:42:17 +0000 Subject: [PATCH] Drop Laravel 8.x & 9.x support (#9) * Drop Laravel 8.x & 9.x support Upgrade to PHPUnit 11.x * Drop PHP 8.0 & 8.1 support --- .github/workflows/psalm.yml | 2 +- .github/workflows/run-tests.yml | 8 ++------ .gitignore | 2 +- composer.json | 8 ++++---- phpunit.xml.dist | 34 +++++++++++++++++---------------- 5 files changed, 26 insertions(+), 28 deletions(-) diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index d3f033f..a1422af 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -16,7 +16,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.2' extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo coverage: none diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 59e2cbb..8d2f83c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,16 +9,12 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: ['8.3', '8.2', '8.1', '8.0'] - laravel: [^8.0, ^9.0, ^10.0, ^11.0] + php: ['8.3', '8.2'] + laravel: [^10.0, ^11.0] dependency-version: [prefer-lowest, prefer-stable] exclude: - php: 8.1 laravel: ^11.0 - - php: 8.0 - laravel: ^11.0 - - php: 8.0 - laravel: ^10.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} diff --git a/.gitignore b/.gitignore index 5cad475..c49f2ee 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,7 @@ composer.lock docs vendor coverage -.phpunit.result.cache +.phpunit.cache .idea .php_cs.cache diff --git a/composer.json b/composer.json index 8c821fb..bb46970 100644 --- a/composer.json +++ b/composer.json @@ -17,12 +17,12 @@ } ], "require": { - "php": "^8.0", - "illuminate/database": "^8.0|^9.0|^10.0|^11.0", - "illuminate/support": "^8.0|^9.0|^10.0|^11.0" + "php": "^8.2", + "illuminate/database": "^10.0|^11.0", + "illuminate/support": "^10.0|^11.0" }, "require-dev": { - "phpunit/phpunit": "^9.4", + "phpunit/phpunit": "^11.0", "vimeo/psalm": "^6.0" }, "autoload": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index e15f5c1..882ca3b 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,23 +1,25 @@ - - - src/ - - - - - - - - tests - - - + + + + + + + + tests + + + + + + src/ + +