diff options
author | Urban Müller | 2016-10-19 14:37:53 +0200 |
---|---|---|
committer | Urban Müller | 2016-10-19 14:37:53 +0200 |
commit | af7fd520a0b3731201089f63cdf30554b2310167 (patch) | |
tree | 9e27b7b25ec8ed104257d24903232e24b7ff11ef /it_xml.class | |
parent | 1be85babb8bfbd735af839aa64d9a79374dffba0 (diff) | |
download | itools-af7fd520a0b3731201089f63cdf30554b2310167.tar.gz itools-af7fd520a0b3731201089f63cdf30554b2310167.tar.bz2 itools-af7fd520a0b3731201089f63cdf30554b2310167.zip |
fix phan warnings
Diffstat (limited to 'it_xml.class')
-rw-r--r-- | it_xml.class | 2 |
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); } |