mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-23 01:26:11 +02:00
Wrap up type-hint adding to all handlers
This commit is contained in:
@@ -40,13 +40,13 @@ class SlackbotHandler extends AbstractProcessingHandler
|
||||
private $channel;
|
||||
|
||||
/**
|
||||
* @param string $slackTeam Slack team slug
|
||||
* @param string $token Slackbot token
|
||||
* @param string $channel Slack channel (encoded ID or name)
|
||||
* @param int $level The minimum logging level at which this handler will be triggered
|
||||
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
|
||||
* @param string $slackTeam Slack team slug
|
||||
* @param string $token Slackbot token
|
||||
* @param string $channel Slack channel (encoded ID or name)
|
||||
* @param string|int $level The minimum logging level at which this handler will be triggered
|
||||
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
|
||||
*/
|
||||
public function __construct($slackTeam, $token, $channel, $level = Logger::CRITICAL, bool $bubble = true)
|
||||
public function __construct(string $slackTeam, string $token, string $channel, $level = Logger::CRITICAL, bool $bubble = true)
|
||||
{
|
||||
parent::__construct($level, $bubble);
|
||||
|
||||
@@ -57,8 +57,6 @@ class SlackbotHandler extends AbstractProcessingHandler
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @param array $record
|
||||
*/
|
||||
protected function write(array $record): void
|
||||
{
|
||||
|
Reference in New Issue
Block a user