From 1c75491af20f2959a28ad153377b160b26ae84b2 Mon Sep 17 00:00:00 2001 From: Dmitry Ivanov Date: Wed, 29 Jun 2016 12:27:49 +0300 Subject: [PATCH] HtmlFormatter methods accessibility Please, make them protected instead of private to enable comfortable overriding of HtmlFormatter class. --- src/Monolog/Formatter/HtmlFormatter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Monolog/Formatter/HtmlFormatter.php b/src/Monolog/Formatter/HtmlFormatter.php index 3251907b..3eec95f6 100644 --- a/src/Monolog/Formatter/HtmlFormatter.php +++ b/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');