Skip to content

Commit

Permalink
[develop] Adds Laravel 11 support (#166)
Browse files Browse the repository at this point in the history
* Adds Laravel 11 support

* Checks if Laravel 11
  • Loading branch information
nunomaduro authored Dec 7, 2023
1 parent 939e88e commit e6d5b33
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,39 @@ jobs:
fail-fast: true
matrix:
php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3]
laravel: [6, 7, 8, 9, 10]
laravel: [6, 7, 8, 9, 10, 11]

exclude:
- php: 7.2
laravel: 8
- php: 7.2
laravel: 9
- php: 7.2
laravel: 10
- php: 7.2
laravel: 11
- php: 7.3
laravel: 9
- php: 7.3
laravel: 10
- php: 7.3
laravel: 11
- php: 7.4
laravel: 9
- php: 7.4
laravel: 10
- php: 7.4
laravel: 11
- php: 8.0
laravel: 10
- php: 8.0
laravel: 11
- php: 8.1
laravel: 6
- php: 8.1
laravel: 7
- php: 8.1
laravel: 11
- php: 8.2
laravel: 6
- php: 8.2
Expand Down Expand Up @@ -76,7 +87,7 @@ jobs:
run: |
composer require laravel/octane --with-all-dependencies --dev
if: |
matrix.php >= 8.0 && (matrix.laravel == '8' || matrix.laravel == '9' || matrix.laravel == '10')
matrix.php >= 8.0 && (matrix.laravel == '8' || matrix.laravel == '9' || matrix.laravel == '10' || matrix.laravel == '11')
- name: Execute unit tests
run: vendor/bin/phpunit
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@
"guzzlehttp/promises": "^1.4.0",
"guzzlehttp/guzzle": "^6.3|^7.0",
"hollodotme/fast-cgi-client": "^3.0",
"illuminate/container": "^6.0|^7.0|^8.0|^9.0|^10.0",
"illuminate/http": "^6.0|^7.0|^8.0|^9.0|^10.0",
"illuminate/queue": "^6.0|^7.0|^8.0|^9.0|^10.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0",
"illuminate/container": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/http": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/queue": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"monolog/monolog": "^1.12|^2.0|^3.2",
"nyholm/psr7": "^1.0",
"riverline/multipart-parser": "^2.0.9",
"symfony/process": "^4.3|^5.0|^6.0",
"symfony/psr-http-message-bridge": "^1.0|^2.0"
"symfony/process": "^4.3|^5.0|^6.0|^7.0",
"symfony/psr-http-message-bridge": "^1.0|^2.0|^6.4|^7.0"
},
"require-dev": {
"mockery/mockery": "^1.2",
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0",
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^8.0|^9.0"
"phpunit/phpunit": "^8.0|^9.0|^10.4"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/EnsureOnNakedDomainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function test_redirects($useCase)
}
}

public function useCases()
public static function useCases()
{
return [
[[
Expand Down

0 comments on commit e6d5b33

Please sign in to comment.