瀏覽代碼

HtmlFormatter methods accessibility

Please, make them protected instead of private to enable comfortable overriding of HtmlFormatter class.
Dmitry Ivanov 9 年之前
父節點
當前提交
1c75491af2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Monolog/Formatter/HtmlFormatter.php

+ 2 - 2
src/Monolog/Formatter/HtmlFormatter.php

@@ -51,7 +51,7 @@ class HtmlFormatter extends NormalizerFormatter
      * @param  bool   $escapeTd false if td content must not be html escaped
      * @return string
      */
-    private function addRow($th, $td = ' ', $escapeTd = true)
+    protected function addRow($th, $td = ' ', $escapeTd = true)
     {
         $th = htmlspecialchars($th, ENT_NOQUOTES, 'UTF-8');
         if ($escapeTd) {
@@ -68,7 +68,7 @@ class HtmlFormatter extends NormalizerFormatter
      * @param  int    $level Error level
      * @return string
      */
-    private function addTitle($title, $level)
+    protected function addTitle($title, $level)
     {
         $title = htmlspecialchars($title, ENT_NOQUOTES, 'UTF-8');