Skip to content

Commit 907de9b

Browse files
wouterjnicolas-grekas
authored andcommitted
Add void return types
1 parent 6ff2608 commit 907de9b

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

Command/MailerTestCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(private TransportInterface $transport)
3333
parent::__construct();
3434
}
3535

36-
protected function configure()
36+
protected function configure(): void
3737
{
3838
$this
3939
->addArgument('to', InputArgument::REQUIRED, 'The recipient of the message')

DataCollector/MessageDataCollector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(MessageLoggerListener $logger)
2929
$this->events = $logger->getEvents();
3030
}
3131

32-
public function collect(Request $request, Response $response, \Throwable $exception = null)
32+
public function collect(Request $request, Response $response, \Throwable $exception = null): void
3333
{
3434
$this->data['events'] = $this->events;
3535
}
@@ -47,7 +47,7 @@ public function base64Encode(string $data): string
4747
return base64_encode($data);
4848
}
4949

50-
public function reset()
50+
public function reset(): void
5151
{
5252
$this->data = [];
5353
}

EventListener/MessageLoggerListener.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ public function __construct()
3030
$this->events = new MessageEvents();
3131
}
3232

33+
/**
34+
* @return void
35+
*/
3336
public function reset()
3437
{
3538
$this->events = new MessageEvents();

Transport/AbstractTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected function getLogger(): LoggerInterface
120120
return $this->logger;
121121
}
122122

123-
private function checkThrottling()
123+
private function checkThrottling(): void
124124
{
125125
if (0 == $this->rate) {
126126
return;

Transport/Smtp/Stream/ProcessStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class ProcessStream extends AbstractStream
2525
{
2626
private string $command;
2727

28-
public function setCommand(string $command)
28+
public function setCommand(string $command): void
2929
{
3030
$this->command = $command;
3131
}

0 commit comments

Comments
 (0)