Skip to content

Commit 8d0cc4a

Browse files
authored
Drop Laravel 8.x & 9.x support (#9)
* Drop Laravel 8.x & 9.x support Upgrade to PHPUnit 11.x * Drop PHP 8.0 & 8.1 support
1 parent 9c8f0d1 commit 8d0cc4a

File tree

5 files changed

+26
-28
lines changed

5 files changed

+26
-28
lines changed

.github/workflows/psalm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.1'
19+
php-version: '8.2'
2020
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
2121
coverage: none
2222

.github/workflows/run-tests.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: ['8.3', '8.2', '8.1', '8.0']
13-
laravel: [^8.0, ^9.0, ^10.0, ^11.0]
12+
php: ['8.3', '8.2']
13+
laravel: [^10.0, ^11.0]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
exclude:
1616
- php: 8.1
1717
laravel: ^11.0
18-
- php: 8.0
19-
laravel: ^11.0
20-
- php: 8.0
21-
laravel: ^10.0
2218

2319
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
2420

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ composer.lock
33
docs
44
vendor
55
coverage
6-
.phpunit.result.cache
6+
.phpunit.cache
77
.idea
88
.php_cs.cache
99

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^8.0",
21-
"illuminate/database": "^8.0|^9.0|^10.0|^11.0",
22-
"illuminate/support": "^8.0|^9.0|^10.0|^11.0"
20+
"php": "^8.2",
21+
"illuminate/database": "^10.0|^11.0",
22+
"illuminate/support": "^10.0|^11.0"
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": "^9.4",
25+
"phpunit/phpunit": "^11.0",
2626
"vimeo/psalm": "^6.0"
2727
},
2828
"autoload": {

phpunit.xml.dist

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
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/9.3/phpunit.xsd"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd"
55
bootstrap="vendor/autoload.php"
66
colors="true"
7-
verbose="true"
7+
cacheDirectory=".phpunit.cache"
88
>
9-
<coverage>
10-
<include>
11-
<directory suffix=".php">src/</directory>
12-
</include>
13-
<report>
14-
<clover outputFile="build/coverage.xml"/>
15-
</report>
16-
</coverage>
17-
<testsuites>
18-
<testsuite name="Unit">
19-
<directory>tests</directory>
20-
</testsuite>
21-
</testsuites>
22-
<logging/>
9+
<coverage>
10+
<report>
11+
<clover outputFile="build/coverage.xml"/>
12+
</report>
13+
</coverage>
14+
<testsuites>
15+
<testsuite name="Unit">
16+
<directory>tests</directory>
17+
</testsuite>
18+
</testsuites>
19+
<logging/>
20+
<source>
21+
<include>
22+
<directory suffix=".php">src/</directory>
23+
</include>
24+
</source>
2325
</phpunit>

0 commit comments

Comments
 (0)