bunq / sdk_php

PHP SDK for bunq API
MIT License
83 stars 54 forks source link

Fix #221 No implicit cast of microtime needed #222

Closed erkens closed 10 months ago

erkens commented 2 years ago

This fix will make sure the implicit cast of microtime is not done anymore, because it has been done in a new variable, which also means that the "cast" is only done once, because it was already needed for the floor()-function.

It should work on all supported PHP versions, but I only tested it with 8.1

erkens commented 2 years ago

Is bunq maintaining their API? Please merge this or give at least a reaction why you won't include this...

StanJansen commented 10 months ago

Hi @sailingdeveloper , sorry for tagging, but I noticed you picked up the last PR that got merged.

This issue causes the SDK to no longer work for us, and we'd prefer not having to create a fork. Could this be looked at / merged, or if a new PR needs to be made as this one is quite old i'd be happy to do that.

We temporarily created a fork with the following change in src/Context/SessionContext.php:

If this SDK will no longer be maintained we'd also like to know it so we can look for alternatives.

sailingdeveloper commented 10 months ago

@StanJansen Merged for now, but this will be reverted as soon as the next backend version is released, which happens often 😅

I’ll take a look if we can fix this structurally 🙏

StanJansen commented 10 months ago

@StanJansen Merged for now, but this will be reverted as soon as the next backend version is released, which happens often 😅

I’ll take a look if we can fix this structurally 🙏

Thanks for the quick reply! That would be great :pray: