Skip to content

Php5 compatible for the new Binance changes from 1/8/21 #422

@billydimitrov

Description

@billydimitrov

Uncaught TypeError: Return value of Binance\API

Just trying to migrate from old version of the class, because of the future Binance API changes at the end of the month.

Trying to use the current class no matter using php5 or 7 getting this fatal error.

Fatal error: Uncaught TypeError: Return value of Binance\API::setXMbxUsedWeight() must be an instance of Binance\void, none returned in
...
php-binance-api.php(1339): Binance\API->setXMbxUsedWeight(2) #1
...
php-binance-api.php(936): Binance\API->httpRequest('v3/ticker/price') #2
...
php-binance-api.php on line 2725

Using just the example as is

image

the old version works perfect for me with all the futures without any issues.

thank you!

P.S. I found that is php version issue. Working with 7.2

Is it have any option to update the old version of the class working with php5 (because of the project) and just update for the removed futures?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions