From 7acf70b22af8f276d1bd827ab7ef7689aed31aa8 Mon Sep 17 00:00:00 2001 From: Ruben Van Assche Date: Tue, 9 Jan 2024 15:09:01 +0100 Subject: [PATCH] Update composer --- .github/workflows/run-tests.yml | 4 +--- UPGRADING.md | 1 + composer.json | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 5176a0861..87590b7c3 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -10,13 +10,11 @@ jobs: matrix: os: [ubuntu-latest] php: [8.1, 8.2, 8.3] - laravel: [9.*, 10.*] + laravel: [10.*] stability: [prefer-lowest, prefer-stable] include: - laravel: 10.* testbench: 8.* - - laravel: 9.* - testbench: 7.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/UPGRADING.md b/UPGRADING.md index afac760b9..af2bd95cf 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -6,6 +6,7 @@ Because there are many breaking changes an upgrade is not that easy. There are m The following things are required when upgrading: +- Laravel 10 is now required - Start by going through your code and replace all static `SomeData::collection($items)` method calls with `SomeData::collect($items, DataCollection::class)` - Use `DataPaginatedCollection::class` when you're expecting a paginated collection - Use `DataCursorPaginatedCollection::class` when you're expecting a cursor paginated collection diff --git a/composer.json b/composer.json index c2fd64537..c5a865f6b 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ ], "require" : { "php": "^8.1", - "illuminate/contracts": "^9.30|^10.0", + "illuminate/contracts": "^10.0", "phpdocumentor/type-resolver": "^1.5", "spatie/laravel-package-tools": "^1.9.0", "spatie/php-structure-discoverer": "^2.0" @@ -30,7 +30,7 @@ "nesbot/carbon": "^2.63", "nette/php-generator": "^3.5", "nunomaduro/larastan": "^2.0", - "orchestra/testbench": "^7.6|^8.0", + "orchestra/testbench": "^8.0", "pestphp/pest": "^2.0", "pestphp/pest-plugin-laravel": "^2.0", "phpbench/phpbench": "^1.2",