File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ class SqlQueryLogSubscriber
1111{
1212 /**
1313 * Create the event listener.
14- *
15- * @return void
1614 */
1715 public function __construct (
1816 private SqlLogger $ logger ,
@@ -21,24 +19,22 @@ public function __construct(
2119
2220 /**
2321 * Register the listeners for the subscriber.
24- *
25- * @return void
2622 */
27- public function subscribe (Dispatcher $ events )
23+ public function subscribe (Dispatcher $ events ): void
2824 {
2925 $ events ->listen (
3026 [
3127 RequestHandled::class,
3228 CommandFinished::class,
3329 ],
34- [SqlQueryLogSubscriber ::class, 'handle ' ]
30+ [self ::class, 'handle ' ]
3531 );
3632 }
3733
3834 /**
3935 * Handle the event.
4036 */
41- public function handle ($ event )
37+ public function handle ($ event ): void
4238 {
4339 $ this ->logger ->log ();
4440 }
Original file line number Diff line number Diff line change @@ -18,10 +18,7 @@ class EventServiceProvider extends ServiceProvider
1818 SqlQueryLogSubscriber::class,
1919 ];
2020
21- /**
22- * @var Config
23- */
24- protected $ config ;
21+ protected Config $ config ;
2522
2623 /**
2724 * {@inheritdoc}
You can’t perform that action at this time.
0 commit comments