Skip to content

Commit

Permalink
Laravel 11 Support (#9)
Browse files Browse the repository at this point in the history
Add Laravel `11.x` support
  • Loading branch information
ousid authored Mar 30, 2024
1 parent c1fb1bb commit 44682c2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.2, 8.1]
laravel: [10.*]
php: [8.1, 8.2, 8.3]
laravel: [10.*, 11.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
carbon: ^2.63
- laravel: 11.*
testbench: 9.*
carbon: '*'
exclude:
- laravel: 11.*
php: 8.1

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

Expand Down
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,18 @@
}
],
"require": {
"php": "^8.1",
"php": "^8.1|^8.2",
"guzzlehttp/guzzle": "^7.7",
"illuminate/contracts": "^10.0",
"illuminate/contracts": "^10.0|^11.0",
"spatie/laravel-package-tools": "^1.14.0"
},
"require-dev": {
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.9",
"nunomaduro/collision": "^7.0|^8.0",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^8.0",
"orchestra/testbench": "^8.0|^9.0",
"pestphp/pest": "^2.0",
"pestphp/pest-plugin-arch": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0"
Expand Down
2 changes: 1 addition & 1 deletion src/LaravelTurnstile.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class LaravelTurnstile
{
protected ?string $url = 'https://challenges.cloudflare.com/turnstile/v0/siteverify';

public function validate(string $cfResponse = null): array
public function validate(?string $cfResponse = null): array
{
$turnstileResponse = is_null($cfResponse)
? request()->get('cf-turnstile-response')
Expand Down

0 comments on commit 44682c2

Please sign in to comment.