瀏覽代碼

type hint

vershinin_so 6 年之前
父節點
當前提交
ad39412eb0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Monolog/Formatter/FlowdockFormatter.php

+ 1 - 1
src/Monolog/Formatter/FlowdockFormatter.php

@@ -82,7 +82,7 @@ class FlowdockFormatter implements FormatterInterface
         return $formatted;
     }
 
-    public function getShortMessage($message)
+    public function getShortMessage(string $message): string
     {
         static $hasMbString;