Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Error when error field not returned to response #1

@mickadoo

Description

@mickadoo

array_merge doesn't check if both arrays exist on
Notice: Undefined index: errors in /closeio-api-wrapper/src/LooplineSystems/CloseIoApiWrapper/CloseIoResponse.php on line 112

Can be reproduced by sending an incorrectly formatted phone number to close.io (which returns a response containing only 'field_errors' but not 'errors'.

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