Closed erkens closed 10 months ago
$apiContext = ApiContext::create($environmentType, $apiKey, $appName);
Relevant traceback entry (from my sentry setup):
Crashed in non-app: /vendor/bunq/sdk_php/src/Context/SessionContext.php in bunq\Context\SessionContext::microTimeToDateTime
The implicit conversion of float to int which leads to a loss in precision is deprecated since PHP 8.1.
float $microtime is passed thru as second parameter to date(), but that must be an int so it is cast implicit here: https://github.com/bunq/sdk_php/blob/dbe2472580051db7ada486406450f0b30ad99221/src/Context/SessionContext.php#L134
float $microtime
date()
int
Steps to reproduce:
$apiContext = ApiContext::create($environmentType, $apiKey, $appName);
What should happen:
What happens:
Traceback
Relevant traceback entry (from my sentry setup):
SDK version and environment
Extra info:
The implicit conversion of float to int which leads to a loss in precision is deprecated since PHP 8.1.
float $microtime
is passed thru as second parameter todate()
, but that must be anint
so it is cast implicit here: https://github.com/bunq/sdk_php/blob/dbe2472580051db7ada486406450f0b30ad99221/src/Context/SessionContext.php#L134