From 30e5efb95da1ec386ea1f6e6d3b767de650e3917 Mon Sep 17 00:00:00 2001 From: n4ss1m Date: Sat, 21 Dec 2024 21:40:10 +0100 Subject: [PATCH 1/2] Update Larastan version constraints in composer.json added support for Larastan ^3.0 in development dependencies. These changes ensure compatibility with the latest tools while streamlining PHP version requirements. --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index d8d44c3..58579b8 100644 --- a/composer.json +++ b/composer.json @@ -10,14 +10,14 @@ ], "homepage": "https://github.com/kossa/algerian-cities", "require": { - "php": "^8.1|^8.2|^8.3", + "php": "^8.1", "laravel/framework": "^10.0|^11.0" }, "require-dev": { "phpunit/phpunit": "^10.0|^11.0", "orchestra/testbench": "^8.0|^9.0", "laravel/pint": "^1.18", - "larastan/larastan": "^2.0" + "larastan/larastan": "^2.0|^3.0" }, "license": "MIT", "autoload": { From 99d794f4cf3619d111b464cfe13bd841c1c670de Mon Sep 17 00:00:00 2001 From: n4ss1m Date: Sat, 21 Dec 2024 21:42:38 +0100 Subject: [PATCH 2/2] Add PHP 8.4 and stability matrix to CI workflow Extend the Laravel CI workflow to test against PHP 8.4 and include stability options (prefer-lowest, prefer-stable). This ensures broader compatibility and stability testing across environments. --- .github/workflows/laravel.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml index b8c6ed5..1d4f977 100644 --- a/.github/workflows/laravel.yml +++ b/.github/workflows/laravel.yml @@ -14,7 +14,8 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.1, 8.2, 8.3] + php: [8.1, 8.2, 8.3, 8.4] + stability: [prefer-lowest, prefer-stable] name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}