Jordi Boggiano пре 1 година
родитељ
комит
a4a5a06501

+ 1 - 1
src/Monolog/Handler/TelegramBotHandler.php

@@ -116,7 +116,7 @@ class TelegramBotHandler extends AbstractProcessingHandler
         ?bool   $disableNotification = null,
         bool   $splitLongMessages = false,
         bool   $delayBetweenMessages = false,
-        int    $topic = null
+        ?int   $topic = null
     ) {
         if (!\extension_loaded('curl')) {
             throw new MissingExtensionException('The curl extension is needed to use the TelegramBotHandler');

+ 1 - 1
tests/Monolog/Formatter/SyslogFormatterTest.php

@@ -30,7 +30,7 @@ class SyslogFormatterTest extends TestCase
         string $channel,
         Level $level,
         string $message,
-        string $appName = null,
+        ?string $appName = null,
         array $context = [],
         array $extra = []
     ): void {