Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sagehenstudio opened this issue Jul 27, 2023 · 2 comments

Comments

@sagehenstudio
Copy link
Contributor

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
Copy link
Contributor

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

@sagehenstudio
Copy link
Contributor Author

Sure: #633

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants