mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-04-20 22:12:32 +02:00
use late state binding now that minimum PHP version is 5.5
This commit is contained in:
parent
cfbc0028cc
commit
ab7f779e33
@ -1780,9 +1780,9 @@ class TCPDF_FONTS {
|
||||
*/
|
||||
public static function UTF8ArrayToUniArray($ta, $isunicode=true) {
|
||||
if ($isunicode) {
|
||||
return array_map(get_called_class().'::unichrUnicode', $ta);
|
||||
return array_map(static::class.'::unichrUnicode', $ta);
|
||||
}
|
||||
return array_map(get_called_class().'::unichrASCII', $ta);
|
||||
return array_map(static::class.'::unichrASCII', $ta);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2002,7 +2002,7 @@ class TCPDF_FONTS {
|
||||
if ($isunicode) {
|
||||
// requires PCRE unicode support turned on
|
||||
$chars = TCPDF_STATIC::pregSplit('//','u', $str, -1, PREG_SPLIT_NO_EMPTY);
|
||||
$carr = array_map(get_called_class().'::uniord', $chars);
|
||||
$carr = array_map(static::class.'::uniord', $chars);
|
||||
} else {
|
||||
$chars = str_split($str);
|
||||
$carr = array_map('ord', $chars);
|
||||
|
Loading…
x
Reference in New Issue
Block a user