Skip to content

Commit

Permalink
update illuminate/contracts to support ^11.0 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
eithed authored Aug 10, 2024
1 parent e241193 commit 60af97c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.0, 8.1]
laravel: [8.*, 9.*, 10.*]
os: [ubuntu-latest]
php: [8.0, 8.1, 8.2, 8.3]
laravel: [9.*, 10.*, 11.*]
stability: [prefer-lowest, prefer-stable]
exclude:
- php: 8.0
laravel: 10.*
include:
- laravel: 9.*
testbench: ^7.9
- laravel: 10.*
php: 8.0
testbench: ^8.0
- laravel: 11.*
testbench: ^9.0

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

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
],
"require": {
"php": "^8.0",
"illuminate/contracts": "^8.67|^9.0|^10.0",
"illuminate/contracts": "^8.67|^9.0|^10.0|^11.0",
"morrislaptop/symfony-custom-normalizers": "^0.4|^0.5",
"symfony/property-access": "^5.2|^6.0",
"symfony/property-info": "^5.2|^6.0",
"symfony/serializer": "^5.2|^6.0"
"symfony/property-access": "^5.2|^6.0|^7.0",
"symfony/property-info": "^5.2|^6.0|^7.0",
"symfony/serializer": "^5.2|^6.0|^7.0"
},
"require-dev": {
"brick/money": "^0.5.1|^0.8",
"friendsofphp/php-cs-fixer": "^3.8",
"mockery/mockery": "^1.4",
"orchestra/testbench": "^6.18|^7.0|^8.0",
"orchestra/testbench": "^7.9|^8.0|^9.0",
"phpunit/phpunit": "^9.3",
"vimeo/psalm": "^4.4|^5.6"
},
Expand Down
4 changes: 2 additions & 2 deletions tests/SerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ public function it_casts_json_to_an_object()
$this->assertEquals('1641 Riverside Drive', $user->addresses[0]->street);
}

protected function usesGetRoute($app)
protected function usesGetRoute()
{
$app->router->get('/users/{user}', function ($user) {
app()->router->get('/users/{user}', function ($user) {
$user = UserWithAddress::find($user);

return $user;
Expand Down

0 comments on commit 60af97c

Please sign in to comment.