Skip to content

Commit 8c4e85d

Browse files
committed
Support for PHP 8.3. Dropped support for Laravel 9
1 parent a571dd3 commit 8c4e85d

File tree

4 files changed

+15
-26
lines changed

4 files changed

+15
-26
lines changed

.github/workflows/run-tests.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest]
16-
php: [8.2, 8.1]
17-
laravel: [10.*, 9.*]
16+
php: [8.3, 8.2, 8.1]
17+
laravel: [10.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
2020
- laravel: 10.*
2121
testbench: ^8.0
22-
- laravel: 9.*
23-
testbench: ^7.0
2422

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
Laravel Middleware to protect your app against Cross-site scripting (XSS). It sanitizes request input by utilising the [Laravel Security](https://github.com/GrahamCampbell/Laravel-Security) package, and it can sanatize [Blade echo statements](https://laravel.com/docs/8.x/blade#displaying-data) as well.
88

9-
* Support for PHP 8.0 and higher
10-
* Support for Laravel 9 and higher
9+
* PHP 8.1 and higher
10+
* Laravel 10
1111

1212
## Sponsor this package!
1313

composer.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,17 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.1|^8.2",
19+
"php": "^8.1|^8.2|^8.3",
2020
"graham-campbell/security": "^11.0",
21-
"illuminate/contracts": "^9.0|^10.0",
21+
"illuminate/contracts": "^10.0",
2222
"spatie/laravel-package-tools": "^1.9.2"
2323
},
2424
"require-dev": {
25-
"nesbot/carbon": "^2.66",
2625
"nunomaduro/collision": "^6.0",
27-
"orchestra/testbench": "^7.0|^8.0",
26+
"orchestra/testbench": "^8.0",
2827
"pestphp/pest": "^1.21",
2928
"pestphp/pest-plugin-laravel": "^1.1",
30-
"phpunit/phpunit": "^9.5"
29+
"phpunit/phpunit": "^10.4"
3130
},
3231
"autoload": {
3332
"psr-4": {

phpunit.xml.dist

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" verbose="true">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" backupGlobals="false"
4+
bootstrap="vendor/autoload.php" colors="true"
5+
processIsolation="false" stopOnFailure="false"
6+
executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true"
7+
beStrictAboutOutputDuringTests="true">
38
<testsuites>
49
<testsuite name="Protone Media Test Suite">
510
<directory>tests</directory>
611
</testsuite>
712
</testsuites>
8-
<coverage>
9-
<include>
10-
<directory suffix=".php">./src</directory>
11-
</include>
12-
<report>
13-
<html outputDirectory="build/coverage"/>
14-
<text outputFile="build/coverage.txt"/>
15-
<clover outputFile="build/logs/clover.xml"/>
16-
</report>
17-
</coverage>
18-
<logging>
19-
<junit outputFile="build/report.junit.xml"/>
20-
</logging>
21-
</phpunit>
13+
</phpunit>

0 commit comments

Comments
 (0)