From ab7f779e334ad9db70c43052a7e30bc27a7cfcdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20de=20Guillebon?= Date: Mon, 18 Nov 2024 09:35:33 +0100 Subject: [PATCH] use late state binding now that minimum PHP version is 5.5 --- include/tcpdf_fonts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/tcpdf_fonts.php b/include/tcpdf_fonts.php index a71c84b7..f4518d9e 100644 --- a/include/tcpdf_fonts.php +++ b/include/tcpdf_fonts.php @@ -1780,9 +1780,9 @@ public static function arrUTF8ToUTF16BE($unicode, $setbom=false) { */ 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 @@ public static function UTF8StringToArray($str, $isunicode, &$currentfont) { 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);