Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explicity void return type to Monolog\Logger #1362

Merged
merged 1 commit into from Aug 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/Monolog/Logger.php
Expand Up @@ -466,7 +466,7 @@ public function getExceptionHandler(): ?callable
* @param string $message The log message
* @param array $context The log context
*/
public function log($level, $message, array $context = [])
public function log($level, $message, array $context = []): void
{
$level = static::toMonologLevel($level);

Expand All @@ -481,7 +481,7 @@ public function log($level, $message, array $context = [])
* @param string $message The log message
* @param array $context The log context
*/
public function debug($message, array $context = [])
public function debug($message, array $context = []): void
{
$this->addRecord(static::DEBUG, (string) $message, $context);
}
Expand All @@ -494,7 +494,7 @@ public function debug($message, array $context = [])
* @param string $message The log message
* @param array $context The log context
*/
public function info($message, array $context = [])
public function info($message, array $context = []): void
{
$this->addRecord(static::INFO, (string) $message, $context);
}
Expand All @@ -507,7 +507,7 @@ public function info($message, array $context = [])
* @param string $message The log message
* @param array $context The log context
*/
public function notice($message, array $context = [])
public function notice($message, array $context = []): void
{
$this->addRecord(static::NOTICE, (string) $message, $context);
}
Expand All @@ -520,7 +520,7 @@ public function notice($message, array $context = [])
* @param string $message The log message
* @param array $context The log context
*/
public function warning($message, array $context = [])
public function warning($message, array $context = []): void
{
$this->addRecord(static::WARNING, (string) $message, $context);
}
Expand All @@ -533,7 +533,7 @@ public function warning($message, array $context = [])
* @param string $message The log message
* @param array $context The log context
*/
public function error($message, array $context = [])
public function error($message, array $context = []): void
{
$this->addRecord(static::ERROR, (string) $message, $context);
}
Expand All @@ -546,7 +546,7 @@ public function error($message, array $context = [])
* @param string $message The log message
* @param array $context The log context
*/
public function critical($message, array $context = [])
public function critical($message, array $context = []): void
{
$this->addRecord(static::CRITICAL, (string) $message, $context);
}
Expand All @@ -559,7 +559,7 @@ public function critical($message, array $context = [])
* @param string $message The log message
* @param array $context The log context
*/
public function alert($message, array $context = [])
public function alert($message, array $context = []): void
{
$this->addRecord(static::ALERT, (string) $message, $context);
}
Expand All @@ -572,7 +572,7 @@ public function alert($message, array $context = [])
* @param string $message The log message
* @param array $context The log context
*/
public function emergency($message, array $context = [])
public function emergency($message, array $context = []): void
{
$this->addRecord(static::EMERGENCY, (string) $message, $context);
}
Expand Down