Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined variable: item #471

Open
Aulerien opened this issue Apr 15, 2022 · 2 comments
Open

Undefined variable: item #471

Aulerien opened this issue Apr 15, 2022 · 2 comments

Comments

@Aulerien
Copy link

Undefined variable: item

  • bug

Short Description:
In the file vendor/jaggedsoft/php-binance-api/php-binance-api.php, inside the function depositHistory the error occured on foreach ($return as $key->$item) {

// Adding for backwards compatibility with wapi
        foreach ($return as $key->$item) {
            $return[$key]['asset'] = $item['coin'];
        }

Platform:

  • linux

php version:

  • 7.4

Long descrption

  • The method depositHistory in vendor/jaggedsoft/php-binance-api/php-binance-api.php

code

//...
$api_key = env('BINANCE_API_KEY');
$api_secret = env('BINANCE_API_SECRET');
$binance_api = new \Binance\API($api_key, $api_secret);
$depositHistory = $binance_api->depositHistory();
dump($depositHistory);
;

result

Undefined variable: item

thank you

@bahadorbzd
Copy link

i have this issue

@fixable11
Copy link

The same. Most likely will fork it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants