Skip to content

strcasecmp() type error #41

Open
Open
@edas11

Description

@edas11

Hi, sometimes we get error: TypeError: strcasecmp() expects parameter 1 to be string, null given in vendor/vipps/module-login/Model/VippsAddressManagement.php:385. In our website we don't really use region. Also, I checked table vipps_customer_address and about 0.8% of rows have region value null. So looks like region can be null and that causes error. Can you add check for null or cast to string or some other fix here?

Magento version: 2.3.5-p1
Vipps login module version: 2.3.6

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