From 6578160445cecfe509970e2253a09bf0bedc87e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Rub=C3=A9l?= Date: Thu, 19 Jan 2023 11:55:13 +0100 Subject: [PATCH] =?UTF-8?q?Laravel=2010=20support=20=F0=9F=8F=B7=20(#5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## About This PR makes sure the package works well with Laravel version 10. --- --- .github/workflows/run-tests.yml | 11 +++++++---- README.md | 2 +- composer.json | 14 +++++++------- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 31f07b3..bd14cda 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -14,21 +14,24 @@ jobs: matrix: os: [ubuntu-latest, windows-latest] php: [8.0, 8.1, 8.2] - laravel: [9.*] + laravel: [9.*, 10.*] stability: [prefer-lowest, prefer-stable] + exclude: + - laravel: 10.* + php: 8.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - 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, intl, fileinfo, sodium - coverage: xdebug + coverage: pcov - name: Setup problem matchers run: | @@ -37,7 +40,7 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.62.1" --dev --no-interaction --no-update + composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.64.1" --dev --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests diff --git a/README.md b/README.md index b420928..ccb670d 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ The package provides the collection of methods to loop over your data. -The package requires PHP `^8.x` and Laravel `^9.0`. +The package requires `PHP 8` or higher and `Laravel 9` or higher. ## #StandWithUkraine [![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md) diff --git a/composer.json b/composer.json index c57e7c6..04c1489 100644 --- a/composer.json +++ b/composer.json @@ -16,19 +16,19 @@ } ], "require": { - "php": "^8.0|^8.1", - "illuminate/contracts": "^8.71|^9.0", + "php": "^8.0", + "illuminate/contracts": "^9.0|^10.0", "spatie/laravel-package-tools": "^1.9" }, "require-dev": { "brianium/paratest": "^6.3", - "laravel/pint": "^0.2.1", + "laravel/pint": "^1.0", "mockery/mockery": "^1.4.4", - "nunomaduro/collision": "^5.10|^6.0", - "nunomaduro/larastan": "^1.0", - "orchestra/testbench": "^6.6|^7.0", + "nunomaduro/collision": "^6.0", + "nunomaduro/larastan": "^2.0", + "orchestra/testbench": "^7.0|^8.0", "phpunit/phpunit": "^9.5", - "roave/backward-compatibility-check": "^6.4|^7.0" + "roave/backward-compatibility-check": "^7.0|^8.0" }, "autoload": { "psr-4": {