File tree 5 files changed +55
-1
lines changed
5 files changed +55
-1
lines changed Original file line number Diff line number Diff line change 14
14
.gitignore export-ignore
15
15
.styleci.yml export-ignore
16
16
CHANGELOG.md export-ignore
17
+ phpstan.neon.dist export-ignore
17
18
phpunit.xml.dist export-ignore
Original file line number Diff line number Diff line change
1
+ name : static analysis
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ - ' *.x'
8
+ pull_request :
9
+
10
+ permissions :
11
+ contents : read
12
+
13
+ jobs :
14
+ tests :
15
+ runs-on : ubuntu-22.04
16
+
17
+ strategy :
18
+ fail-fast : true
19
+
20
+ name : Static Analysis
21
+
22
+ steps :
23
+ - name : Checkout code
24
+ uses : actions/checkout@v3
25
+
26
+ - name : Setup PHP
27
+ uses : shivammathur/setup-php@v2
28
+ with :
29
+ php-version : 8.2
30
+ tools : composer:v2
31
+ coverage : none
32
+
33
+ - name : Install dependencies
34
+ uses : nick-fields/retry@v2
35
+ with :
36
+ timeout_minutes : 5
37
+ max_attempts : 5
38
+ command : composer update --prefer-stable --prefer-dist --no-interaction --no-progress
39
+
40
+ - name : Execute type checking
41
+ run : vendor/bin/phpstan
Original file line number Diff line number Diff line change 19
19
},
20
20
"require-dev" : {
21
21
"mockery/mockery" : " ~1.3.3|^1.4.2" ,
22
+ "orchestra/testbench" : " ^4.0|^5.0|^6.0|^6.0|^7.0|^8.0" ,
23
+ "phpstan/phpstan" : " ^1.10" ,
22
24
"phpunit/phpunit" : " ^8.5.8|^9.3.3"
23
25
},
24
26
"suggest" : {
Original file line number Diff line number Diff line change
1
+ parameters:
2
+ paths:
3
+ - config
4
+ - src
5
+
6
+ level: 0
7
+
8
+ ignoreErrors:
9
+ - "#Unsafe usage of new static\\(\\)#"
10
+ - "#Class Laravel\\\\Lumen\\\\Application not found.#"
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ public static function castModel($model)
129
129
$ hidden = array_flip ($ model ->getHidden ());
130
130
131
131
$ appends = (function () {
132
- return array_combine ($ this ->appends , $ this ->appends );
132
+ return array_combine ($ this ->appends , $ this ->appends ); // @phpstan-ignore-line
133
133
})->bindTo ($ model , $ model )();
134
134
135
135
foreach ($ appends as $ appended ) {
You can’t perform that action at this time.
0 commit comments