Skip to content

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

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

Closed
justpilot opened this issue May 16, 2024 · 0 comments

Comments

@justpilot
Copy link

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);
    }
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

1 participant