Skip to content

Undefined array key 2 in analyseUNH() #150

@netbrothers-tr

Description

@netbrothers-tr

We are running into the following warning,

PHP Warning:  Undefined array key 2 in .../vendor/sabas/edifact/src/EDI/Parser.php on line 279

when parsing a file necessary for accounting with statutory health insurance companies in Germany. The file can be obtained from the following URL.

The page providing the download can be found here:

A raw line, provoking the error, looks like this, for example:

UNH+00299+KOTR:1'

I'm not sure, whether that's a problem with the file or the parser. Maybe it's non-standard EDI?! If so, would it be problematic to not read into the $messageDirectory variable at this point in the logic, if the value is missing?

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