From 75bc6d676603609558c970c2d369d599d8134ce0 Mon Sep 17 00:00:00 2001 From: Maurizio Date: Sun, 22 Feb 2026 18:39:39 +0100 Subject: [PATCH 1/6] Update version constraints for illuminate/contracts and dev dependencies --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 448a481..371ecca 100644 --- a/composer.json +++ b/composer.json @@ -18,14 +18,14 @@ "require": { "php": "^8.1", "spatie/laravel-package-tools": "^1.4.3", - "illuminate/contracts": "^10.0", + "illuminate/contracts": "^10.0|^11.0", "league/commonmark": "^2.0" }, "require-dev": { "laravel/pint": "^1.0", "nunomaduro/larastan": "^2.0.1", - "orchestra/testbench": "^8.0", - "phpunit/phpunit": "^9.5", + "orchestra/testbench": "^8.0|^9.0", + "phpunit/phpunit": "^1.05|^11.0", "spatie/phpunit-snapshot-assertions": "^4.2" }, "autoload": { From 6b8ae6c967d7c2c843e322200c8fa111885bf946 Mon Sep 17 00:00:00 2001 From: Maurizio Date: Sun, 22 Feb 2026 18:43:24 +0100 Subject: [PATCH 2/6] Update Laravel version and testbench in CI workflow --- .github/workflows/run-tests.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b3d5eae..55a0f12 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -10,30 +10,37 @@ jobs: fail-fast: true matrix: php: [8.1, 8.2] - laravel: [10.*] + laravel: [10.*, 11.*] stability: [prefer-stable] os: [ubuntu-latest] + include: + - laravel: 10.* + testbench: 8.* + - laravel: 11.* + testbench: 9.* + exclude: + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite coverage: none - tools: composer:v2 - name: Get composer cache directory id: composer-cache run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v5 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ matrix.os }}-php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-composer-${{ matrix.stability }}-${{ hashFiles('**/composer.json') }} @@ -41,7 +48,7 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests From 7c8b212fbb0a4ce2b1e454ae8c2d36b17ad147f7 Mon Sep 17 00:00:00 2001 From: Maurizio Date: Sun, 22 Feb 2026 18:46:26 +0100 Subject: [PATCH 3/6] Update PHPUnit and Spatie version constraints --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 371ecca..2cd04d3 100644 --- a/composer.json +++ b/composer.json @@ -25,8 +25,8 @@ "laravel/pint": "^1.0", "nunomaduro/larastan": "^2.0.1", "orchestra/testbench": "^8.0|^9.0", - "phpunit/phpunit": "^1.05|^11.0", - "spatie/phpunit-snapshot-assertions": "^4.2" + "phpunit/phpunit": "^9.5|^11.0", + "spatie/phpunit-snapshot-assertions": "^4.2|^5.0" }, "autoload": { "psr-4": { From eec4b8158b44a509438ae4685718abc962b42624 Mon Sep 17 00:00:00 2001 From: Maurizio Date: Sun, 22 Feb 2026 18:49:00 +0100 Subject: [PATCH 4/6] Change PHP coverage setting to use xdebug --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 55a0f12..3676978 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -33,7 +33,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite - coverage: none + coverage: xdebug - name: Get composer cache directory id: composer-cache From 04e4765a59cbe65ce330bdb885a58e8aa11a3113 Mon Sep 17 00:00:00 2001 From: Maurizio Date: Sun, 22 Feb 2026 18:51:46 +0100 Subject: [PATCH 5/6] Refactor phpunit.xml.dist for PHPUnit 10.5 Updated PHPUnit configuration to version 10.5 standards. --- phpunit.xml.dist | 37 +++++++------------------------------ 1 file changed, 7 insertions(+), 30 deletions(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index f984629..920e844 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,39 +1,16 @@ - + - + tests - - - ./src - - - - - - - + + + ./src + + From f5993b0cb36d1d7faff46f5f950155ba12c65ea3 Mon Sep 17 00:00:00 2001 From: Maurizio Date: Sun, 22 Feb 2026 18:52:26 +0100 Subject: [PATCH 6/6] Update PHPUnit and Spatie versions in composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 2cd04d3..0826859 100644 --- a/composer.json +++ b/composer.json @@ -25,8 +25,8 @@ "laravel/pint": "^1.0", "nunomaduro/larastan": "^2.0.1", "orchestra/testbench": "^8.0|^9.0", - "phpunit/phpunit": "^9.5|^11.0", - "spatie/phpunit-snapshot-assertions": "^4.2|^5.0" + "phpunit/phpunit": "^10.5|^11.0", + "spatie/phpunit-snapshot-assertions": "^5.0" }, "autoload": { "psr-4": {