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

Commit 6578160

Browse files
Laravel 10 support 🏷 (#5)
## About This PR makes sure the package works well with Laravel version 10. ---
1 parent a6757a5 commit 6578160

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.github/workflows/run-tests.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,24 @@ jobs:
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
1616
php: [8.0, 8.1, 8.2]
17-
laravel: [9.*]
17+
laravel: [9.*, 10.*]
1818
stability: [prefer-lowest, prefer-stable]
19+
exclude:
20+
- laravel: 10.*
21+
php: 8.0
1922

2023
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2124

2225
steps:
2326
- name: Checkout code
24-
uses: actions/checkout@v2
27+
uses: actions/checkout@v3
2528

2629
- name: Setup PHP
2730
uses: shivammathur/setup-php@v2
2831
with:
2932
php-version: ${{ matrix.php }}
3033
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, fileinfo, sodium
31-
coverage: xdebug
34+
coverage: pcov
3235

3336
- name: Setup problem matchers
3437
run: |
@@ -37,7 +40,7 @@ jobs:
3740
3841
- name: Install dependencies
3942
run: |
40-
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.62.1" --dev --no-interaction --no-update
43+
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.64.1" --dev --no-interaction --no-update
4144
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4245
4346
- name: Execute tests

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
The package provides the collection of methods to loop over your data.
1212

13-
The package requires PHP `^8.x` and Laravel `^9.0`.
13+
The package requires `PHP 8` or higher and `Laravel 9` or higher.
1414

1515
## #StandWithUkraine
1616
[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.0|^8.1",
20-
"illuminate/contracts": "^8.71|^9.0",
19+
"php": "^8.0",
20+
"illuminate/contracts": "^9.0|^10.0",
2121
"spatie/laravel-package-tools": "^1.9"
2222
},
2323
"require-dev": {
2424
"brianium/paratest": "^6.3",
25-
"laravel/pint": "^0.2.1",
25+
"laravel/pint": "^1.0",
2626
"mockery/mockery": "^1.4.4",
27-
"nunomaduro/collision": "^5.10|^6.0",
28-
"nunomaduro/larastan": "^1.0",
29-
"orchestra/testbench": "^6.6|^7.0",
27+
"nunomaduro/collision": "^6.0",
28+
"nunomaduro/larastan": "^2.0",
29+
"orchestra/testbench": "^7.0|^8.0",
3030
"phpunit/phpunit": "^9.5",
31-
"roave/backward-compatibility-check": "^6.4|^7.0"
31+
"roave/backward-compatibility-check": "^7.0|^8.0"
3232
},
3333
"autoload": {
3434
"psr-4": {

0 commit comments

Comments
 (0)