Skip to content

Commit cab2888

Browse files
authored
Merge pull request #65 from BedrockStreaming/fix-future-deprecated
fix: add right return type on needed function
2 parents 9d6af2d + dabd274 commit cab2888

4 files changed

Lines changed: 22 additions & 27 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @Backend/Monitoring&QA

src/M6Web/Bundle/LogBridgeBundle/Config/FilterCollection.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,12 @@ public function key()
145145
return $this->iterator;
146146
}
147147

148-
/**
149-
* next
150-
*/
151-
public function next()
148+
public function next(): void
152149
{
153150
$this->iterator++;
154151
}
155152

156-
/**
157-
* rewind
158-
*/
159-
public function rewind()
153+
public function rewind(): void
160154
{
161155
$this->iterator = 0;
162156
}

src/M6Web/Bundle/LogBridgeBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Configuration implements ConfigurationInterface
1515
/**
1616
* {@inheritdoc}
1717
*/
18-
public function getConfigTreeBuilder()
18+
public function getConfigTreeBuilder(): TreeBuilder
1919
{
2020
$treeBuilder = new TreeBuilder('m6web_log_bridge');
2121
$rootNode = $treeBuilder->getRootNode();

src/M6Web/Bundle/LogBridgeBundle/Logger/Logger.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,72 +25,72 @@ public function __construct($logger)
2525
/**
2626
* {@inheritdoc}
2727
*/
28-
public function emergency($message, array $context = [])
28+
public function emergency($message, array $context = []): void
2929
{
30-
return $this->logger->emergency($message, $context);
30+
$this->logger->emergency($message, $context);
3131
}
3232

3333
/**
3434
* {@inheritdoc}
3535
*/
36-
public function alert($message, array $context = [])
36+
public function alert($message, array $context = []): void
3737
{
38-
return $this->logger->alert($message, $context);
38+
$this->logger->alert($message, $context);
3939
}
4040

4141
/**
4242
* {@inheritdoc}
4343
*/
44-
public function critical($message, array $context = [])
44+
public function critical($message, array $context = []): void
4545
{
46-
return $this->logger->critical($message, $context);
46+
$this->logger->critical($message, $context);
4747
}
4848

4949
/**
5050
* {@inheritdoc}
5151
*/
52-
public function error($message, array $context = [])
52+
public function error($message, array $context = []): void
5353
{
54-
return $this->logger->error($message, $context);
54+
$this->logger->error($message, $context);
5555
}
5656

5757
/**
5858
* {@inheritdoc}
5959
*/
60-
public function warning($message, array $context = [])
60+
public function warning($message, array $context = []): void
6161
{
62-
return $this->logger->warning($message, $context);
62+
$this->logger->warning($message, $context);
6363
}
6464

6565
/**
6666
* {@inheritdoc}
6767
*/
68-
public function notice($message, array $context = [])
68+
public function notice($message, array $context = []): void
6969
{
70-
return $this->logger->notice($message, $context);
70+
$this->logger->notice($message, $context);
7171
}
7272

7373
/**
7474
* {@inheritdoc}
7575
*/
76-
public function info($message, array $context = [])
76+
public function info($message, array $context = []): void
7777
{
78-
return $this->logger->info($message, $context);
78+
$this->logger->info($message, $context);
7979
}
8080

8181
/**
8282
* {@inheritdoc}
8383
*/
84-
public function debug($message, array $context = [])
84+
public function debug($message, array $context = []): void
8585
{
86-
return $this->logger->debug($message, $context);
86+
$this->logger->debug($message, $context);
8787
}
8888

8989
/**
9090
* {@inheritdoc}
9191
*/
92-
public function log($level, $message, array $context = [])
92+
public function log($level, $message, array $context = []): void
9393
{
94-
return $this->logger->log($level, $message, $context);
94+
$this->logger->log($level, $message, $context);
9595
}
9696
}

0 commit comments

Comments
 (0)