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

Deprecation warnings in PHP 8.2.22 #743

Open
IcetipsAlta opened this issue Aug 29, 2024 · 0 comments
Open

Deprecation warnings in PHP 8.2.22 #743

IcetipsAlta opened this issue Aug 29, 2024 · 0 comments

Comments

@IcetipsAlta
Copy link

I'm aware that this is the old version which is pretty much closed while the new one is in development.

After updating to the latest build of the "old" version, and also upgrading to PHP 8.2.22 I got a few deprecation warnings from PHP most notably on like 4138 and 4139 in tcpdf.php

Deprecated: Implicit conversion from float x.xxxxx to int loses precision in path\pdf_library\tcpdf.php on line 4138
Deprecated: Implicit conversion from float x.xxxxx to int loses precision in path\pdf_library\tcpdf.php on line 4139

The x.xxxxx varies and on a 2-3 page report this returns about 2,900 warnings. This refers to the getRawCharWidth method and those two lines of code:

if (isset($this->CurrentFont['cw'][$char])) {
    $w = $this->CurrentFont['cw'][$char];

Is there anything that I can do to fix this to get around this problem?

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

1 participant