Skip to content

Notice at channel responsed #1

Description

@apollonin

at the Cubits/Cubits.php file at methods

getChannel, createChannel and updateChannel you have this code

$returnValue->transactions =  $response->transactions;

But when there are no transactions and $response->transactions === NULL, php generate an Notice.
i suggest you to improve that code like this

$returnValue->transactions = isset($response->transactions) ? $response->transactions : [];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions