Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Laravel 10 support 🏷 (#5)
Browse files Browse the repository at this point in the history
## About

This PR makes sure the package works well with Laravel version 10.

---
  • Loading branch information
michael-rubel authored Jan 19, 2023
1 parent a6757a5 commit 6578160
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 6578160

Please sign in to comment.