We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SDK you're using (please complete the following information):
Describe the bug In PHP 8.1, it issues a warning when implicitly converting the $seconds variable to int in line 80 in StringUtil.php.
To Reproduce Execute any code that enters the convertStringToDateTime function and enters the else statement
Additional Context This can be fixed by changing line 80 in String Util.php from:
$datetime->setTimestamp($seconds);
To:
$datetime->setTimestamp((int)$seconds);
The text was updated successfully, but these errors were encountered:
PETOSS-564
Sorry, something went wrong.
Thanks for raising an issue, a ticket has been created to track your request
I'm getting this when I am working with payment dates.
example: 'updated_date_utc' => $row->getUpdatedDateUtcAsDate()->format('Y-m-d H:i:s'),
'updated_date_utc' => $row->getUpdatedDateUtcAsDate()->format('Y-m-d H:i:s'),
Deprecated: Implicit conversion from float 1507667758.76 to int loses precision in [...]/vendor/xeroapi/xero-php-oauth2/lib/StringUtil.php on line 80
but not on this 'date' => $row->getDateAsDate()->format('Y-m-d H:i:s'),
'date' => $row->getDateAsDate()->format('Y-m-d H:i:s'),
I'm guessing it's because the "date" is rounded up, and the updated_date_utc isn't.
date: /Date(1507593600000+0000)/ updated_date_utc: /Date(1507667758760+0000)/
No branches or pull requests
SDK you're using (please complete the following information):
Describe the bug
In PHP 8.1, it issues a warning when implicitly converting the $seconds variable to int in line 80 in StringUtil.php.
To Reproduce
Execute any code that enters the convertStringToDateTime function and enters the else statement
Additional Context
This can be fixed by changing line 80 in String Util.php from:
$datetime->setTimestamp($seconds);
To:
$datetime->setTimestamp((int)$seconds);
The text was updated successfully, but these errors were encountered: