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

PHP 8.1 - Deprecated error in setasign\Fpdi\Tcpdf\Fpdi #152

Closed
flavou45 opened this issue Aug 12, 2022 · 5 comments
Closed

PHP 8.1 - Deprecated error in setasign\Fpdi\Tcpdf\Fpdi #152

flavou45 opened this issue Aug 12, 2022 · 5 comments

Comments

@flavou45
Copy link

flavou45 commented Aug 12, 2022

In my project under symfony 6.1 (php 8.1), I have the error message below that appears:

Method "TCPDF::_getxobjectdict()" might add "string" as a native return type declaration in the future. Do the same in child class "setasign\Fpdi\Tcpdf\Fpdi" now to avoid errors or add an explicit @return annotation to suppress this message.

@JanSlabon
Copy link
Member

Can you please check if the changes in this branch solves that problem?

@flavou45
Copy link
Author

Hi,
Yes, your changes fixed the problem.
Thanks.

@JanSlabon
Copy link
Member

Okay, this will make it into the next official release.

Just some more information: The message comes from the DebugClassLoader which checks the loaded classes for some style things. The error is thrown by exactly this class and is not a deprecation warning from the PHP engine.

@shyim
Copy link

shyim commented Feb 9, 2023

Hey,

Could we have an release for this fix?

@JanSlabon
Copy link
Member

Done!

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

3 participants