Skip to content

Commit

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

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.9|^8.1",
"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 0cc62d9

Please sign in to comment.