From af7fd520a0b3731201089f63cdf30554b2310167 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 19 Oct 2016 14:37:53 +0200 Subject: fix phan warnings --- it_xml.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_xml.class b/it_xml.class index 644ef9e..32617b3 100644 --- a/it_xml.class +++ b/it_xml.class @@ -138,7 +138,7 @@ function _sanitize($xmldata, $isutf8 = null) } # Encode non-utf8 characters in a string, leave utf8 alone -function _utf8_fix($str) +static function _utf8_fix($str) { return preg_match('/^([\xc0-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf][\x80-\xbf]|[\xf0-\xf7][\x80-\xbf][\x80-\xbf][\x80-\xbf])$/', $str) ? $str : utf8_encode($str); } -- cgit v1.2.3