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 index: errorCode #69

Closed
igzard opened this issue Jun 28, 2024 · 1 comment
Closed

Undefined index: errorCode #69

igzard opened this issue Jun 28, 2024 · 1 comment

Comments

@igzard
Copy link

igzard commented Jun 28, 2024

Release: v3.0.2

Előfordul olyan response, amiben nincs errorCode tömbelem, ezért Undefined index Exception-t kaptunk:

Undefined index: errorCode
src/NavOnlineInvoice/BaseExceptionResponse.php : (36)
 public function getResultMessage() {
    $result = $this->getResult();

    if (empty($result["message"])) {
        $message = $result["errorCode"];
    } elseif (empty($result["errorCode"])) {
        $message = $result["message"];
    } else {
        $message = "$result[message] ($result[errorCode])";
    }

    return $message;
}
pzs added a commit that referenced this issue Jun 29, 2024
@pzs
Copy link
Owner

pzs commented Jun 29, 2024

Nálam még nem volt a hibanaplóban ilyen hiba, de most tettem ide is egy ellenőrzést és készítettem belőle egy új (v3.0.3) releaset.

@pzs pzs closed this as completed Jun 29, 2024
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

2 participants