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

Conversation

@kleetus
Copy link
Contributor

@kleetus kleetus commented Feb 12, 2016

closes #180

checks api value as numeric (string or not), then casts to float. This should not be a breaking api change.

Chris Kleeschulte added 3 commits January 28, 2016 12:44
- Please note that the integration tests won't work with Symfony 3 due to Behat not supporting this version yet.
- Unit tests are function with both Symfony 2.x or 3.0
- Model classes will/should test types on mutators, a sane model is calling is_numeric followed by floatval for float types

Rationale: 

Instantiators of models should take care to construct fields of the appropriate type, but model's should have a bit of checking as well for safety.
@pnagurny
Copy link
Contributor

LGTM

pnagurny added a commit that referenced this pull request Feb 16, 2016
@pnagurny pnagurny merged commit 66537e5 into bitpay:master Feb 16, 2016
@mindaugas-dt
Copy link

Having problems with downloading a new version with composer. Looks like packagist was not updated. Could you please update it? packagist: bitpay/php-client

@kleetus
Copy link
Contributor Author

kleetus commented Feb 17, 2016

I've updated packagist for v2.2.11, it normally works off the webhook, but not this last time.

@kleetus kleetus deleted the bug/field_types branch February 17, 2016 19:48
@mindaugas-dt
Copy link

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bitpay API returns btcPaid as a string

3 participants