Skip to content

Commit 9dda51a

Browse files
committed
return types cleanup
1 parent 72d9cfe commit 9dda51a

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

src/Listeners/SqlQueryLogSubscriber.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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
}

src/Providers/EventServiceProvider.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)