File tree 2 files changed +4
-11
lines changed
2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ class SqlQueryLogSubscriber
11
11
{
12
12
/**
13
13
* Create the event listener.
14
- *
15
- * @return void
16
14
*/
17
15
public function __construct (
18
16
private SqlLogger $ logger ,
@@ -21,24 +19,22 @@ public function __construct(
21
19
22
20
/**
23
21
* Register the listeners for the subscriber.
24
- *
25
- * @return void
26
22
*/
27
- public function subscribe (Dispatcher $ events )
23
+ public function subscribe (Dispatcher $ events ): void
28
24
{
29
25
$ events ->listen (
30
26
[
31
27
RequestHandled::class,
32
28
CommandFinished::class,
33
29
],
34
- [SqlQueryLogSubscriber ::class, 'handle ' ]
30
+ [self ::class, 'handle ' ]
35
31
);
36
32
}
37
33
38
34
/**
39
35
* Handle the event.
40
36
*/
41
- public function handle ($ event )
37
+ public function handle ($ event ): void
42
38
{
43
39
$ this ->logger ->log ();
44
40
}
Original file line number Diff line number Diff line change @@ -18,10 +18,7 @@ class EventServiceProvider extends ServiceProvider
18
18
SqlQueryLogSubscriber::class,
19
19
];
20
20
21
- /**
22
- * @var Config
23
- */
24
- protected $ config ;
21
+ protected Config $ config ;
25
22
26
23
/**
27
24
* {@inheritdoc}
You can’t perform that action at this time.
0 commit comments