Skip to content

Commit 4ebe3a8

Browse files
authored
Merge pull request #49 from mindplay-dk/master
return types were incorrectly hinted as `null`, should be `void`
2 parents 607ce1d + f960c17 commit 4ebe3a8

File tree

5 files changed

+28
-28
lines changed

5 files changed

+28
-28
lines changed

Psr/Log/AbstractLogger.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ abstract class AbstractLogger implements LoggerInterface
1717
* @param string $message
1818
* @param array $context
1919
*
20-
* @return null
20+
* @return void
2121
*/
2222
public function emergency($message, array $context = array())
2323
{
@@ -33,7 +33,7 @@ public function emergency($message, array $context = array())
3333
* @param string $message
3434
* @param array $context
3535
*
36-
* @return null
36+
* @return void
3737
*/
3838
public function alert($message, array $context = array())
3939
{
@@ -48,7 +48,7 @@ public function alert($message, array $context = array())
4848
* @param string $message
4949
* @param array $context
5050
*
51-
* @return null
51+
* @return void
5252
*/
5353
public function critical($message, array $context = array())
5454
{
@@ -62,7 +62,7 @@ public function critical($message, array $context = array())
6262
* @param string $message
6363
* @param array $context
6464
*
65-
* @return null
65+
* @return void
6666
*/
6767
public function error($message, array $context = array())
6868
{
@@ -78,7 +78,7 @@ public function error($message, array $context = array())
7878
* @param string $message
7979
* @param array $context
8080
*
81-
* @return null
81+
* @return void
8282
*/
8383
public function warning($message, array $context = array())
8484
{
@@ -91,7 +91,7 @@ public function warning($message, array $context = array())
9191
* @param string $message
9292
* @param array $context
9393
*
94-
* @return null
94+
* @return void
9595
*/
9696
public function notice($message, array $context = array())
9797
{
@@ -106,7 +106,7 @@ public function notice($message, array $context = array())
106106
* @param string $message
107107
* @param array $context
108108
*
109-
* @return null
109+
* @return void
110110
*/
111111
public function info($message, array $context = array())
112112
{
@@ -119,7 +119,7 @@ public function info($message, array $context = array())
119119
* @param string $message
120120
* @param array $context
121121
*
122-
* @return null
122+
* @return void
123123
*/
124124
public function debug($message, array $context = array())
125125
{

Psr/Log/LoggerAwareInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface LoggerAwareInterface
1212
*
1313
* @param LoggerInterface $logger
1414
*
15-
* @return null
15+
* @return void
1616
*/
1717
public function setLogger(LoggerInterface $logger);
1818
}

Psr/Log/LoggerInterface.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface LoggerInterface
2525
* @param string $message
2626
* @param array $context
2727
*
28-
* @return null
28+
* @return void
2929
*/
3030
public function emergency($message, array $context = array());
3131

@@ -38,7 +38,7 @@ public function emergency($message, array $context = array());
3838
* @param string $message
3939
* @param array $context
4040
*
41-
* @return null
41+
* @return void
4242
*/
4343
public function alert($message, array $context = array());
4444

@@ -50,7 +50,7 @@ public function alert($message, array $context = array());
5050
* @param string $message
5151
* @param array $context
5252
*
53-
* @return null
53+
* @return void
5454
*/
5555
public function critical($message, array $context = array());
5656

@@ -61,7 +61,7 @@ public function critical($message, array $context = array());
6161
* @param string $message
6262
* @param array $context
6363
*
64-
* @return null
64+
* @return void
6565
*/
6666
public function error($message, array $context = array());
6767

@@ -74,7 +74,7 @@ public function error($message, array $context = array());
7474
* @param string $message
7575
* @param array $context
7676
*
77-
* @return null
77+
* @return void
7878
*/
7979
public function warning($message, array $context = array());
8080

@@ -84,7 +84,7 @@ public function warning($message, array $context = array());
8484
* @param string $message
8585
* @param array $context
8686
*
87-
* @return null
87+
* @return void
8888
*/
8989
public function notice($message, array $context = array());
9090

@@ -96,7 +96,7 @@ public function notice($message, array $context = array());
9696
* @param string $message
9797
* @param array $context
9898
*
99-
* @return null
99+
* @return void
100100
*/
101101
public function info($message, array $context = array());
102102

@@ -106,7 +106,7 @@ public function info($message, array $context = array());
106106
* @param string $message
107107
* @param array $context
108108
*
109-
* @return null
109+
* @return void
110110
*/
111111
public function debug($message, array $context = array());
112112

@@ -117,7 +117,7 @@ public function debug($message, array $context = array());
117117
* @param string $message
118118
* @param array $context
119119
*
120-
* @return null
120+
* @return void
121121
*/
122122
public function log($level, $message, array $context = array());
123123
}

Psr/Log/LoggerTrait.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ trait LoggerTrait
1818
* @param string $message
1919
* @param array $context
2020
*
21-
* @return null
21+
* @return void
2222
*/
2323
public function emergency($message, array $context = array())
2424
{
@@ -34,7 +34,7 @@ public function emergency($message, array $context = array())
3434
* @param string $message
3535
* @param array $context
3636
*
37-
* @return null
37+
* @return void
3838
*/
3939
public function alert($message, array $context = array())
4040
{
@@ -49,7 +49,7 @@ public function alert($message, array $context = array())
4949
* @param string $message
5050
* @param array $context
5151
*
52-
* @return null
52+
* @return void
5353
*/
5454
public function critical($message, array $context = array())
5555
{
@@ -63,7 +63,7 @@ public function critical($message, array $context = array())
6363
* @param string $message
6464
* @param array $context
6565
*
66-
* @return null
66+
* @return void
6767
*/
6868
public function error($message, array $context = array())
6969
{
@@ -79,7 +79,7 @@ public function error($message, array $context = array())
7979
* @param string $message
8080
* @param array $context
8181
*
82-
* @return null
82+
* @return void
8383
*/
8484
public function warning($message, array $context = array())
8585
{
@@ -92,7 +92,7 @@ public function warning($message, array $context = array())
9292
* @param string $message
9393
* @param array $context
9494
*
95-
* @return null
95+
* @return void
9696
*/
9797
public function notice($message, array $context = array())
9898
{
@@ -107,7 +107,7 @@ public function notice($message, array $context = array())
107107
* @param string $message
108108
* @param array $context
109109
*
110-
* @return null
110+
* @return void
111111
*/
112112
public function info($message, array $context = array())
113113
{
@@ -120,7 +120,7 @@ public function info($message, array $context = array())
120120
* @param string $message
121121
* @param array $context
122122
*
123-
* @return null
123+
* @return void
124124
*/
125125
public function debug($message, array $context = array())
126126
{
@@ -134,7 +134,7 @@ public function debug($message, array $context = array())
134134
* @param string $message
135135
* @param array $context
136136
*
137-
* @return null
137+
* @return void
138138
*/
139139
abstract public function log($level, $message, array $context = array());
140140
}

Psr/Log/NullLogger.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class NullLogger extends AbstractLogger
1919
* @param string $message
2020
* @param array $context
2121
*
22-
* @return null
22+
* @return void
2323
*/
2424
public function log($level, $message, array $context = array())
2525
{

0 commit comments

Comments
 (0)