You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given
#0 /var/www/vendor/linwj/huobi/src/Request.php(167): method_exists() #1 /var/www/vendor/linwj/huobi/src/Api/Spot/Order.php(21): Lin\Huobi\Request->exec()
When submitting order to Huobi calling $client->order()->postPlace()
Using PHP8.1
Probable fix to linwj/huobi/src/Request.php and linwj/binance/src/Request.php (might affect other exchanges Request.php too) if(method_exists($e->getResponse(),'getBody')){
to be changed to if( !empty($e->getResponse()) && method_exists($e->getResponse(),'getBody')){
The text was updated successfully, but these errors were encountered:
leexin
changed the title
Getting error method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given
PHP 8.1 - Getting error method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given
Dec 17, 2022
method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given
#0 /var/www/vendor/linwj/huobi/src/Request.php(167): method_exists()
#1 /var/www/vendor/linwj/huobi/src/Api/Spot/Order.php(21): Lin\Huobi\Request->exec()
When submitting order to Huobi calling $client->order()->postPlace()
Using PHP8.1
Probable fix to linwj/huobi/src/Request.php and linwj/binance/src/Request.php (might affect other exchanges Request.php too)
if(method_exists($e->getResponse(),'getBody')){
to be changed to
if( !empty($e->getResponse()) && method_exists($e->getResponse(),'getBody')){
The text was updated successfully, but these errors were encountered: