Skip to content

[BUG] Uncaught Exception TypeError - Cannot assign null to property Seven\Api\Response\Lookup\LookupFormat::$carrier of type string #12

Closed
@justpilot

Description

@justpilot

There is a problem that started today at 14:00 UTC.

Uncaught Exception TypeError: "Cannot assign null to property Seven\Api\Response\Lookup\LookupFormat::$carrier of type string" at /vendor/seven.io/api/src/Response/Lookup/LookupFormat.php line 17

{
    "class": "TypeError",
    "message": "Cannot assign null to property Seven\\Api\\Response\\Lookup\\LookupFormat::$carrier of type string",
    "code": 0,
    "file": "/www/htdocs/w00d4062/login.faceshop.de/vendor/seven.io/api/src/Response/Lookup/LookupFormat.php:17",
    "trace": [
        "/vendor/seven.io/api/src/Resource/LookupResource.php:22",
        "/src/Services/SMSService.php:65",
        "/html/api/appointments/notification_sms.php:24"
    ]
}

Calling this method:

public static function lookupFormat(string $phoneNumber): LookupFormat
    {
        $client = new Client(SEVEN_API_KEY);
        return $client->lookup->format($phoneNumber);
    }

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