Skip to content

Commit da3cd32

Browse files
authored
Merge pull request #34 from coderflexx/feat/add-laravel-13-support
Add Laravel 13.x and PHP 8.4 support
2 parents cfd28d4 + 5efd8ee commit da3cd32

5 files changed

Lines changed: 22 additions & 18 deletions

File tree

.github/workflows/phpstan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
name: phpstan
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v6
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.1'
19+
php-version: '8.2'
2020
coverage: none
2121

2222
- name: Install composer dependencies

.github/workflows/run-tests.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,28 @@ jobs:
1616
fail-fast: true
1717
matrix:
1818
os: [ubuntu-latest, windows-latest]
19-
php: [8.2, 8.3]
20-
laravel: ['11.*', '12.*']
21-
stability: [prefer-lowest, prefer-stable]
19+
php: [8.2, 8.3, 8.4]
20+
laravel: ['11.*', '12.*', '13.*']
21+
stability: [prefer-stable]
2222
include:
2323
- laravel: 11.*
2424
testbench: 9.*
25-
carbon: '*'
25+
carbon: ">=3.8.4"
2626
- laravel: 12.*
2727
testbench: 10.*
28-
carbon: '*'
28+
carbon: ">=3.8.4"
29+
- laravel: 13.*
30+
testbench: 11.*
31+
carbon: ">=3.8.4"
32+
exclude:
33+
- laravel: 13.*
34+
php: 8.2
2935

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

3238
steps:
3339
- name: Checkout code
34-
uses: actions/checkout@v3
40+
uses: actions/checkout@v6
3541

3642
- name: Setup PHP
3743
uses: shivammathur/setup-php@v2
@@ -54,4 +60,4 @@ jobs:
5460
run: composer show -D
5561

5662
- name: Execute tests
57-
run: vendor/bin/pest --ci
63+
run: vendor/bin/pest --ci --no-coverage

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^8.2|^8.3",
21+
"php": "^8.2|^8.3|^8.4",
2222
"guzzlehttp/guzzle": "^7.7",
23-
"illuminate/contracts": "^10.0|^11.0|^12.0",
23+
"illuminate/contracts": "^10.0|^11.0|^12.0|^13.0",
2424
"spatie/laravel-package-tools": "^1.14.0"
2525
},
2626
"require-dev": {
2727
"laravel/pint": "^1.0",
2828
"nunomaduro/collision": "^7.0|^8.0",
2929
"nunomaduro/larastan": "^2.8.0|^3.1.0",
30-
"orchestra/testbench": "^8.0|^9.0|^10.0",
31-
"pestphp/pest": "^2.0|^3.7",
32-
"pestphp/pest-plugin-arch": "^2.0|^3.0",
30+
"orchestra/testbench": "^8.0|^9.0|^10.0|^11.0",
31+
"pestphp/pest": "^2.0|^3.7|^4.4",
32+
"pestphp/pest-plugin-arch": "^2.0|^3.0|^4.0",
3333
"phpstan/extension-installer": "^1.1",
3434
"phpstan/phpstan-deprecation-rules": "^1.0|^2.0",
3535
"phpstan/phpstan-phpunit": "^1.0|^2.0"

phpunit.xml.dist

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd"
55
backupGlobals="false"
66
bootstrap="vendor/autoload.php"
77
colors="true"
88
processIsolation="false"
9-
stopOnFailure="false"
109
executionOrder="random"
1110
failOnWarning="true"
1211
failOnRisky="true"
1312
failOnEmptyTestSuite="true"
14-
beStrictAboutOutputDuringTests="true"
1513
cacheDirectory=".phpunit.cache"
1614
backupStaticProperties="false"
1715
>

tests/TurnstileTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
'turnstile_secret_key' => '2x0000000000000000000000000000000AA',
2222
]);
2323

24-
$rule = new TurnstileCheck();
24+
$rule = new TurnstileCheck;
2525

2626
$result = $rule->validate('cf-turnstile-response', 'invalid_input', fn () => '');
2727

0 commit comments

Comments
 (0)