Skip to content

[BUG] Type Error on Methods.php on line 147 #10

@rudiullon

Description

@rudiullon

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
$onfleet = new Onfleet("valid_api_key",6000);
$data = [
"name" => "User Name",
"phone" => "+1XXXXXX", #valid phone number
"notes" => " ",
"skipPhoneNumberValidation" => false,
"skipSMSNotifications" => false,
]

$recipient = $onfleet->recipients->create($data);
TypeError: Onfleet\errors\HttpError::__construct(): Argument #2 ($cause) must be of type string, array given, called in /home/my_project_folder/vendor/onfleet/php-onfleet/src/Methods.php on line 147

Expected behavior
It should create and return a new recipient

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions