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

Bug/field types - #181

Merged
pnagurny merged 3 commits into
bitpay:masterfrom
kleetus:bug/field_types
Feb 16, 2016
Merged

Bug/field types#181
pnagurny merged 3 commits into
bitpay:masterfrom
kleetus:bug/field_types

Conversation

@kleetus

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

LGTM

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

Copy link
Copy Markdown

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
Copy Markdown
ContributorAuthor

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
Copy Markdown

Thanks!

Sign up for freeto 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

@kleetus@pnagurny@mindaugas-dt