Skip to content

Commit

Permalink
Merge pull request #6 from Niklan/php-8.4
Browse files Browse the repository at this point in the history
PHP 8.4 compatibility
  • Loading branch information
jacklul authored Jan 24, 2025
2 parents ec8674f + 35c14dc commit 3d535b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/TelegramFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ class TelegramFormatter implements FormatterInterface
/**
* Formatter constructor
*
* @param bool $html Format as HTML or not
* @param string $format The format of the message
* @param string $dateFormat The format of the timestamp: one supported by DateTime::format
* @param string $separator Record separator used when sending batch of logs in one message
* @param array $emojiArray Array containing emojis for each record level name
* @param bool $html Format as HTML or not
* @param string|null $format The format of the message
* @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format
* @param string $separator Record separator used when sending batch of logs in one message
* @param array|null $emojiArray Array containing emojis for each record level name
*/
public function __construct(bool $html = true, string $format = null, string $dateFormat = null, string $separator = '-', array $emojiArray = null)
public function __construct(bool $html = true, ?string $format = null, ?string $dateFormat = null, string $separator = '-', ?array $emojiArray = null)
{
$this->html = $html;
$this->format = $format ?: self::MESSAGE_FORMAT;
Expand Down

0 comments on commit 3d535b4

Please sign in to comment.