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

Avoid PHP 8.1 deprecation warning in BaseRequestXml.php:57 #57

Merged
merged 2 commits into from
Jan 27, 2022
Merged

Avoid PHP 8.1 deprecation warning in BaseRequestXml.php:57 #57

merged 2 commits into from
Jan 27, 2022

Conversation

hNczy
Copy link
Contributor

@hNczy hNczy commented Jan 26, 2022

I noticed the following message when I run a technical annulment:

Deprecated: Implicit conversion from float 1643214619.570649 to int loses precision in /var/www/html/vendor/pzs/nav-online-invoice/src/NavOnlineInvoice/BaseRequestXml.php on line 57

More details about the deprication:
https://php.watch/versions/8.1/deprecate-implicit-conversion-incompatible-float-string

So will suggest here an explicit int casting.

hNczy added 2 commits January 26, 2022 18:16
Avoid the php 8.1 deprecation

Deprecated: Implicit conversion from float 1643214619.570649 to int loses precision in /var/www/html/vendor/pzs/nav-online-invoice/src/NavOnlineInvoice/BaseRequestXml.php on line 57
@pzs
Copy link
Owner

pzs commented Jan 27, 2022

Thanks for the detailed information and the fix!

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

Successfully merging this pull request may close these issues.

2 participants