Skip to content

Class property reflection issues #192

@m1waterman88

Description

@m1waterman88

We're seeing the following errors after upgrading from 6.0.2111 to 7.1.0, on line 673 in JsonMapper::createInstance. It's failing on what starts as a Client::getInvoice call using the merchant facade. Our code hasn't changed.

Class "\BitPaySDK\Model\Invoice\$overpaidAmount" not found
Class "\BitPaySDK\Model\Invoice\$underpaidAmount" not found

I'm thinking there's a reflection issue in there since these are properties---or seemingly method parameters given the missing underscore---we don't use on our side, and it appears the SDK code has getters and setters for it without actually using them outside of tests.

bitpay/sdk: 7.1.0
PHP: 8.1

Can you let me know if there's something we need to change on our end that you can surmise from this? Of course, let me know if you need any more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions