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

Возникают ворнинги, если не указать явно array в array_merge #562

Closed
xor2016 opened this issue Jun 5, 2019 · 1 comment

Comments

Projects
None yet
3 participants
@xor2016
Copy link

commented Jun 5, 2019

$terminal = array_merge($terminal, $player->json['data']);

    $terminal = array();
    if ($player->json['success']) {
        $terminal = array_merge($terminal, (array)$player->json['data']); //added type
        //DebMes($player->json['data']);
    } else {
        // Если произошла ошибка, выводим ее описание
        return ($player->json['message']);
    }
    $player->command = 'status'; // Команда
    $player->ajax = TRUE;
    $player->intCall = TRUE;
    $player->usual($out);
    if ($player->json['success']) {
        $terminal = array_merge($terminal, (array)$player->json['data']); //added type
        //DebMes($player->json['data']);
        return ($terminal);
@tarasfrompir

This comment has been minimized.

Copy link
Contributor

commented Jun 6, 2019

Реквсет подал - если что закрывайте

@sergejey sergejey closed this Jun 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.