Closed littlepackage closed 1 year ago
An issue with a suggested fix. A "use of "self" in callables is deprecated" warning is arising from tcpdf_fonts.php using PHP 8.2
In lines 1788, 1790, and 2010 of tcpdf_fonts.php, this deprecation warning (PHP 8.2) can be fixed by changing the lines to read:
return array_map(self::class . "::unichrUnicode",$ta);
return array_map(self::class . "::unichrASCII",$ta); and
return array_map(self::class . "::unichrASCII",$ta);
$carr = array_map(self::class . "::uniord",$chars); respectively.
$carr = array_map(self::class . "::uniord",$chars);
Hi @sagehenstudio Can you open a pull-request for this change ?
Sure: #633
An issue with a suggested fix. A "use of "self" in callables is deprecated" warning is arising from tcpdf_fonts.php using PHP 8.2
In lines 1788, 1790, and 2010 of tcpdf_fonts.php, this deprecation warning (PHP 8.2) can be fixed by changing the lines to read:
return array_map(self::class . "::unichrUnicode",$ta);
return array_map(self::class . "::unichrASCII",$ta);
and$carr = array_map(self::class . "::uniord",$chars);
respectively.