Skip to content

Commit

Permalink
Merge pull request #49 from mindplay-dk/master
Browse files Browse the repository at this point in the history
return types were incorrectly hinted as `null`, should be `void`
  • Loading branch information
Seldaek authored Oct 10, 2016
2 parents 607ce1d + f960c17 commit 4ebe3a8
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 28 deletions.
16 changes: 8 additions & 8 deletions Psr/Log/AbstractLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ abstract class AbstractLogger implements LoggerInterface
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function emergency($message, array $context = array())
{
Expand All @@ -33,7 +33,7 @@ public function emergency($message, array $context = array())
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function alert($message, array $context = array())
{
Expand All @@ -48,7 +48,7 @@ public function alert($message, array $context = array())
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function critical($message, array $context = array())
{
Expand All @@ -62,7 +62,7 @@ public function critical($message, array $context = array())
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function error($message, array $context = array())
{
Expand All @@ -78,7 +78,7 @@ public function error($message, array $context = array())
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function warning($message, array $context = array())
{
Expand All @@ -91,7 +91,7 @@ public function warning($message, array $context = array())
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function notice($message, array $context = array())
{
Expand All @@ -106,7 +106,7 @@ public function notice($message, array $context = array())
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function info($message, array $context = array())
{
Expand All @@ -119,7 +119,7 @@ public function info($message, array $context = array())
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function debug($message, array $context = array())
{
Expand Down
2 changes: 1 addition & 1 deletion Psr/Log/LoggerAwareInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface LoggerAwareInterface
*
* @param LoggerInterface $logger
*
* @return null
* @return void
*/
public function setLogger(LoggerInterface $logger);
}
18 changes: 9 additions & 9 deletions Psr/Log/LoggerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface LoggerInterface
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function emergency($message, array $context = array());

Expand All @@ -38,7 +38,7 @@ public function emergency($message, array $context = array());
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function alert($message, array $context = array());

Expand All @@ -50,7 +50,7 @@ public function alert($message, array $context = array());
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function critical($message, array $context = array());

Expand All @@ -61,7 +61,7 @@ public function critical($message, array $context = array());
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function error($message, array $context = array());

Expand All @@ -74,7 +74,7 @@ public function error($message, array $context = array());
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function warning($message, array $context = array());

Expand All @@ -84,7 +84,7 @@ public function warning($message, array $context = array());
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function notice($message, array $context = array());

Expand All @@ -96,7 +96,7 @@ public function notice($message, array $context = array());
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function info($message, array $context = array());

Expand All @@ -106,7 +106,7 @@ public function info($message, array $context = array());
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function debug($message, array $context = array());

Expand All @@ -117,7 +117,7 @@ public function debug($message, array $context = array());
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function log($level, $message, array $context = array());
}
18 changes: 9 additions & 9 deletions Psr/Log/LoggerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ trait LoggerTrait
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function emergency($message, array $context = array())
{
Expand All @@ -34,7 +34,7 @@ public function emergency($message, array $context = array())
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function alert($message, array $context = array())
{
Expand All @@ -49,7 +49,7 @@ public function alert($message, array $context = array())
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function critical($message, array $context = array())
{
Expand All @@ -63,7 +63,7 @@ public function critical($message, array $context = array())
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function error($message, array $context = array())
{
Expand All @@ -79,7 +79,7 @@ public function error($message, array $context = array())
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function warning($message, array $context = array())
{
Expand All @@ -92,7 +92,7 @@ public function warning($message, array $context = array())
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function notice($message, array $context = array())
{
Expand All @@ -107,7 +107,7 @@ public function notice($message, array $context = array())
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function info($message, array $context = array())
{
Expand All @@ -120,7 +120,7 @@ public function info($message, array $context = array())
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function debug($message, array $context = array())
{
Expand All @@ -134,7 +134,7 @@ public function debug($message, array $context = array())
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
abstract public function log($level, $message, array $context = array());
}
2 changes: 1 addition & 1 deletion Psr/Log/NullLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class NullLogger extends AbstractLogger
* @param string $message
* @param array $context
*
* @return null
* @return void
*/
public function log($level, $message, array $context = array())
{
Expand Down

0 comments on commit 4ebe3a8

Please sign in to comment.