Skip to content
This repository was archived by the owner on Feb 10, 2021. It is now read-only.
This repository was archived by the owner on Feb 10, 2021. It is now read-only.

PHP 7.2 and Bandwidth #35

@lloy0076

Description

@lloy0076
use Catapult\Client;
use Catapult\Message;
use Catapult\PhoneNumber;
use Catapult\TextMessage;

...
    $result = new Message([
      'from' => new PhoneNumber($from),
      'to'   => new PhoneNumber($to),
      'text' => new TextMessage($message),
    ]);
...

Version: 0.8.2

This causes a resolver error on:

[2018-03-13 11:42:09] local.DEBUG: Sleeping extra 3 seconds.
[2018-03-13 11:42:09] local.ERROR: ErrorException: sizeof(): Parameter must be an array or an object that implements Countable in C:\laragon\webroots\playhq\attendence-laravel\vendor\bandwidth\catapult\source\resource\Resolver.php:47
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'sizeof(): Param...', 'C:\\laragon\\webr...', 47, Array)
#1 C:\laragon\webroots\playhq\attendence-laravel\vendor\bandwidth\catapult\source\resource\Resolver.php(47): sizeof(Object(Catapult\DataPacket))

Metadata

Metadata

Assignees

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