File tree Expand file tree Collapse file tree 9 files changed +326
-254
lines changed Expand file tree Collapse file tree 9 files changed +326
-254
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
strategy :
9
9
matrix :
10
- php : [8.1, 8. 2, 8.3]
10
+ php : [8.2, 8.3]
11
11
stability : ["--prefer-lowest", "--prefer-stable"]
12
12
steps :
13
13
- name : Checkout
29
29
uses : actions/cache@v4
30
30
with :
31
31
path : ${{ steps.composer-cache.outputs.dir }}
32
- key : ${{ runner.os }}-${{ matrix.php }}-${{ matrix.strategy }}-composer-${{ hashFiles('**/composer.json') }}
32
+ key : ${{ runner.os }}-${{ matrix.php }}-${{ matrix.stability }}-composer-${{ hashFiles('**/composer.json') }}
33
33
restore-keys : |
34
- ${{ runner.os }}-${{ matrix.php }}-${{ matrix.strategy }}-composer-
34
+ ${{ runner.os }}-${{ matrix.php }}-${{ matrix.stability }}-composer-
35
35
36
36
- name : Install Composer dependencies
37
37
run : composer update --no-interaction --no-progress --optimize-autoloader --prefer-dist ${{ matrix.stability }}
Original file line number Diff line number Diff line change 1
1
# Upgrade Guide
2
2
3
+ ## v5
4
+
5
+ ### Upgrading from v4.3 to v5.0
6
+
7
+ - Minimum Laravel version increased from ` 10.46 ` to ` 11.0.3 ` .
8
+ - Minimum PHP version increased from ` 8.1 ` to ` 8.2 ` .
9
+
3
10
## v4
4
11
5
12
### Upgrading from v4.2 to v4.3
Original file line number Diff line number Diff line change 5
5
"license" : " MIT" ,
6
6
"minimum-stability" : " stable" ,
7
7
"require" : {
8
- "php" : " ^8.1 " ,
9
- "laravel/framework" : " ^10.46 "
8
+ "php" : " ^8.2 " ,
9
+ "laravel/framework" : " ^11.0.3 "
10
10
},
11
11
"require-dev" : {
12
12
"ext-json" : " *" ,
13
- "orchestra/testbench" : " ^8.0" ,
14
- "phpunit/phpunit" : " ^9.6" ,
15
- "laravel/pint" : " 1.13.9"
13
+ "orchestra/testbench" : " ^9.0" ,
14
+ "phpunit/phpunit" : " ^10.5" ,
15
+ "laravel/pint" : " 1.13.9" ,
16
+ "larastan/larastan" : " ^2.0"
16
17
},
17
18
"autoload" : {
18
19
"psr-4" : {
34
35
"scripts" : {
35
36
"check-code" : [
36
37
" @lint" ,
38
+ " @phpstan" ,
37
39
" @test"
38
40
],
39
41
"lint" : " @php vendor/bin/pint --test" ,
40
42
"lint:fix" : " @php vendor/bin/pint" ,
43
+ "phpstan" : " @php vendor/bin/phpstan analyse" ,
41
44
"test" : " @php vendor/bin/phpunit"
42
45
}
43
46
}
Original file line number Diff line number Diff line change
1
+ includes :
2
+ - vendor/larastan/larastan/extension.neon
3
+ parameters :
4
+ paths :
5
+ - src/
6
+ level : 8
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9 .5/phpunit.xsd"
3
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10 .5/phpunit.xsd"
4
4
bootstrap =" vendor/autoload.php"
5
- cacheResultFile =" .phpunit.cache/test-results "
5
+ cacheDirectory =" .phpunit.cache"
6
6
executionOrder =" depends,defects"
7
- forceCoversAnnotation =" false"
8
- beStrictAboutCoversAnnotation =" true"
7
+ requireCoverageMetadata =" false"
8
+ beStrictAboutCoverageMetadata =" true"
9
9
beStrictAboutOutputDuringTests =" true"
10
- beStrictAboutTodoAnnotatedTests =" true"
11
10
failOnRisky =" true"
12
- failOnWarning =" true"
13
- verbose =" true" >
11
+ failOnWarning =" true" >
14
12
<testsuites >
15
13
<testsuite name =" default" >
16
14
<directory >tests</directory >
17
15
</testsuite >
18
16
</testsuites >
19
17
20
- <coverage cacheDirectory =" .phpunit.cache/code-coverage"
21
- processUncoveredFiles =" true" >
18
+ <source restrictDeprecations =" true" restrictNotices =" true" restrictWarnings =" true" >
22
19
<include >
23
- <directory suffix = " .php " >src</directory >
20
+ <directory >src</directory >
24
21
</include >
25
- </coverage >
22
+ </source >
26
23
27
24
<php >
28
25
<env name =" DB_CONNECTION" value =" testing" />
You can’t perform that action at this time.
0 commit comments