Skip to content

Commit

Permalink
Laravel 10 support 🏷 (#28)
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 18, 2023
1 parent 6c7dfb6 commit f197f49
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.0, 8.1, 8.2]
laravel: ["9.x"]
laravel: [10.*, 9.*]
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
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 @@ -12,7 +12,7 @@ This package introduces the `Formatter` pattern you can use to standardize data

---

Latest version of the package requires PHP `^8.0` and Laravel `^9.7`.
The package requires `PHP 8` or higher and `Laravel 9` or higher.
If you're looking for older versions, check [release history](https://github.com/michael-rubel/laravel-formatters/releases).


Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"require": {
"php": "^8.0",
"ext-intl": "*",
"illuminate/contracts": "^9.7",
"michael-rubel/laravel-enhanced-container": "^10.0",
"illuminate/contracts": "^9.7|^10.0",
"michael-rubel/laravel-enhanced-container": "^10.0|^11.0",
"spatie/laravel-package-tools": "^1.12"
},
"require-dev": {
Expand All @@ -28,7 +28,7 @@
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.0",
"nunomaduro/larastan": "^2.2",
"orchestra/testbench": "^7.0",
"orchestra/testbench": "^7.0|^8.0",
"phpunit/phpunit": "^9.5",
"roave/backward-compatibility-check": "^7.0|^8.0",
"roave/infection-static-analysis-plugin": "^1.25"
Expand Down
2 changes: 1 addition & 1 deletion pint.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"preset": "laravel",
"rules": {
"Laravel/laravel_phpdoc_separation": false,
"phpdoc_separation": false,
"concat_space": {
"spacing": "one"
},
Expand Down

0 comments on commit f197f49

Please sign in to comment.