tecnickcom / TCPDF

Official clone of PHP library to generate PDF documents and barcodes
https://tcpdf.org
Other
4.18k stars 1.51k forks source link

Use of "self" in callables is deprecated in include/tcpdf_fonts.php (PHP 8.2) #632

Closed littlepackage closed 1 year ago

littlepackage commented 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

$carr = array_map(self::class . "::uniord",$chars); respectively.

williamdes commented 1 year ago

Hi @sagehenstudio Can you open a pull-request for this change ?

littlepackage commented 1 year ago

Sure: #633