File tree 5 files changed +6
-6
lines changed
5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 9
9
- ' README.md'
10
10
11
11
jobs :
12
- build :
12
+ phpstan-pr :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change 9
9
- ' README.md'
10
10
11
11
jobs :
12
- build :
12
+ phpstan :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change 9
9
- ' README.md'
10
10
11
11
jobs :
12
- test :
12
+ run-tests-pr :
13
13
runs-on : ${{ matrix.os }}
14
14
strategy :
15
15
fail-fast : true
Original file line number Diff line number Diff line change 9
9
- ' README.md'
10
10
11
11
jobs :
12
- test :
12
+ run-tests :
13
13
runs-on : ${{ matrix.os }}
14
14
strategy :
15
15
fail-fast : true
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ public function getModel(): string
202
202
$ reflectionCategory = new ReflectionClass (Category::class);
203
203
$ categories = collect ($ reflectionCategory ->getConstants ())->flip ();
204
204
205
- $ category = $ categories ->get ($ this ->category );
205
+ $ category = $ categories ->get (( string ) $ this ->category );
206
206
207
207
if (!is_string ($ category )) {
208
208
return (string ) $ this ->category ;
@@ -219,7 +219,7 @@ public function getMethod(): string
219
219
$ reflectionMethod = new ReflectionClass (Method::class);
220
220
$ methods = collect ($ reflectionMethod ->getConstants ())->values ();
221
221
222
- $ method = $ methods ->get ($ this ->sub_category );
222
+ $ method = $ methods ->get (( string ) $ this ->sub_category );
223
223
224
224
if (!is_string ($ method )) {
225
225
return (string ) $ this ->sub_category ;
You can’t perform that action at this time.
0 commit comments