From c37d23b70349c59fc60a511d7e4a2991580ebc25 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Thu, 21 Nov 2024 15:25:24 +0000 Subject: [PATCH] Don't run `prefer-lowest` tests with PHP 8.4 The "lowest" versions of dependencies throw deprecation errors with PHP 8.4 - we only want to test with the latest versions for now. This means we also don't need to adjust the minimum versions of dependencies. This is what Laravel does in their test suite. --- .github/workflows/tests.yml | 2 ++ composer.json | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ff4098c4fe..6810ccea6c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,6 +34,8 @@ jobs: laravel: 11.* - php: 8.4 laravel: 10.* + - php: 8.4 + stability: prefer-lowest name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/composer.json b/composer.json index 737b8292a2..98d0c12bba 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "composer/semver": "^3.4", "guzzlehttp/guzzle": "^6.3 || ^7.0", "james-heinrich/getid3": "^1.9.21", - "laravel/framework": "^10.40 || ^11.3", + "laravel/framework": "^10.40 || ^11.0", "laravel/prompts": "^0.1.16", "league/commonmark": "^2.2", "league/csv": "^9.0", @@ -44,8 +44,7 @@ "mockery/mockery": "^1.6.10", "orchestra/testbench": "^8.14 || ^9.0", "phpunit/phpunit": "^10.5.35", - "spatie/laravel-ray": "^1.37", - "spatie/ray": "^1.41.2" + "spatie/laravel-ray": "^1.37" }, "config": { "optimize-autoloader": true,