summaryrefslogtreecommitdiff
path: root/it_xml.class
diff options
context:
space:
mode:
authorUrban Müller2016-10-19 14:37:53 +0200
committerUrban Müller2016-10-19 14:37:53 +0200
commitaf7fd520a0b3731201089f63cdf30554b2310167 (patch)
tree9e27b7b25ec8ed104257d24903232e24b7ff11ef /it_xml.class
parent1be85babb8bfbd735af839aa64d9a79374dffba0 (diff)
downloaditools-af7fd520a0b3731201089f63cdf30554b2310167.tar.gz
itools-af7fd520a0b3731201089f63cdf30554b2310167.tar.bz2
itools-af7fd520a0b3731201089f63cdf30554b2310167.zip
fix phan warnings
Diffstat (limited to 'it_xml.class')
-rw-r--r--it_xml.class2
1 files changed, 1 insertions, 1 deletions
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);
}