Skip to content
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.

Warning : DateTime::setTimestamp() expects parameter 1 to be integer, float given #256

Closed
novhex opened this issue Dec 3, 2017 · 2 comments

Comments

@novhex
Copy link

novhex commented Dec 3, 2017

Hello, i have downloaded the latest version of php-bitpay-client and i successfully configured the settings then when i tested it to create an invoice , i encountered this warning message

Warning: DateTime::setTimestamp() expects parameter 1 to be integer, float given in C:\xampp\htdocs\bitpaydemo\php-bitpay-client-master\src\Bitpay\Invoice.php on line 477

Warning: DateTime::setTimestamp() expects parameter 1 to be integer, float given in C:\xampp\htdocs\bitpaydemo\php-bitpay-client-master\src\Bitpay\Invoice.php on line 502

Warning: DateTime::setTimestamp() expects parameter 1 to be integer, float given in C:\xampp\htdocs\bitpaydemo\php-bitpay-client-master\src\Bitpay\Invoice.php on line 527 

but however the invoice id is generated . what could be the problem?

@pieterpoorthuis
Copy link

Can you show me the PHP code where you create the invoice?

@pieterpoorthuis
Copy link

Fixed in v2.2.16

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants