From: Antonio Ospite Date: Wed, 18 May 2016 08:56:40 +0000 (+0200) Subject: tweeper.php: make logXmlError() a static method X-Git-Tag: v0.6~31 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/7ec1925e01b1aba945c76b240063751ec81973b6 tweeper.php: make logXmlError() a static method --- diff --git a/tweeper.php b/tweeper.php index 1836a2a..817452b 100644 --- a/tweeper.php +++ b/tweeper.php @@ -164,7 +164,7 @@ class Tweeper { /** * Mimic the message from libxml.c::php_libxml_ctx_error_level() */ - private function logXmlError($error) { + private static function logXmlError($error) { $output = ""; switch ($error->level) { @@ -293,7 +293,7 @@ class Tweeper { } foreach (libxml_get_errors() as $xml_error) { - $this->logXmlError($xml_error); + Tweeper::logXmlError($xml_error); } libxml_clear_errors(); libxml_use_internal_errors($xml_errors_value);