File tree 4 files changed +34
-12
lines changed
4 files changed +34
-12
lines changed Original file line number Diff line number Diff line change 35
35
laravel : ^8.0
36
36
- php : 8.1
37
37
laravel : ^9.0
38
+ - php : 8.2
39
+ laravel : ^10.0
38
40
39
41
name : PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
40
42
87
89
cd laravel-app
88
90
ls -lha
89
91
cat composer.json
90
- composer update --no-interaction --no-progress
92
+ composer update --no-interaction --no-progress --with-all-dependencies
91
93
php artisan package:discover --ansi
92
94
php artisan clear-compiled
93
95
Original file line number Diff line number Diff line change @@ -78,10 +78,11 @@ php artisan my:command -vvv
78
78
79
79
| Compatible | Laravel |
80
80
| --------------------| ---------|
81
- | :heavy_check_mark : | 9.* |
82
- | :heavy_check_mark : | 8.* |
83
- | :heavy_check_mark : | 7.* |
84
- | :heavy_check_mark : | 6.* |
81
+ | :heavy_check_mark : | 10.* |
82
+ | :heavy_check_mark : | 9.* |
83
+ | :heavy_check_mark : | 8.* |
84
+ | :heavy_check_mark : | 7.* |
85
+ | :heavy_check_mark : | 6.* |
85
86
86
87
---
87
88
Original file line number Diff line number Diff line change @@ -19,19 +19,29 @@ public function getProcessors(): array
19
19
return [];
20
20
}
21
21
22
- public function isHandling (array $ record ): bool
22
+ /**
23
+ * @param array|Monolog\LogRecord $record
24
+ */
25
+ public function isHandling ($ record ): bool
23
26
{
24
27
return true ;
25
28
}
26
29
27
- public function handle (array $ record ): bool
30
+ /**
31
+ * @param array|Monolog\LogRecord $record
32
+ */
33
+ public function handle ($ record ): bool
28
34
{
29
- $ this ->log (strtolower ($ record ['level_name ' ] ?? '' ), $ record ['message ' ] ?? '' , $ record ['context ' ] ?? []);
35
+ $ recordArray = is_array ($ record ) ? $ record : $ record ->toArray ();
36
+ $ this ->log (strtolower ($ recordArray ['level_name ' ] ?? '' ), $ recordArray ['message ' ] ?? '' , $ recordArray ['context ' ] ?? []);
30
37
31
38
return true ;
32
39
}
33
40
34
- public function handleBatch (array $ records ): void
41
+ /**
42
+ * @param array|Monolog\LogRecord $record
43
+ */
44
+ public function handleBatch ($ records ): void
35
45
{
36
46
foreach ($ records as $ record ) {
37
47
$ this ->handle ($ record );
Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ public function getHandlers(): array
15
15
return [];
16
16
}
17
17
18
- public function isHandling (array $ record ): bool
18
+ /**
19
+ * @param array|Monolog\LogRecord $record
20
+ */
21
+ public function isHandling ($ record ): bool
19
22
{
20
23
return false ;
21
24
}
@@ -25,12 +28,18 @@ public function getProcessors(): array
25
28
return [];
26
29
}
27
30
28
- public function handle (array $ record ): bool
31
+ /**
32
+ * @param array|Monolog\LogRecord $record
33
+ */
34
+ public function handle ($ record ): bool
29
35
{
30
36
return false ;
31
37
}
32
38
33
- public function handleBatch (array $ records ): void
39
+ /**
40
+ * @param array|Monolog\LogRecord $record
41
+ */
42
+ public function handleBatch ($ records ): void
34
43
{
35
44
}
36
45
You can’t perform that action at this time.
0 commit comments