Skip to content

Conversation

@JohnstonCode
Copy link
Contributor

Related to #127

@JohnstonCode
Copy link
Contributor Author

@CoolGoose do you have any issue with my implementation? If there aren't any i will look to add tests.

@CoolGoose
Copy link
Contributor

Hey @JohnstonCode , thank you for the PR, this is looking good for me.

parent::loadFromArray($object);

$this->recipients = (new Recipients())->loadFromArray($this->recipients);
$this->typeDetails = get_object_vars($this->typeDetails);
Copy link
Contributor Author

@JohnstonCode JohnstonCode Apr 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current implementation returns $typeDetails as a stdClass when its type is set to array

@JohnstonCode JohnstonCode marked this pull request as ready for review April 20, 2021 08:57
@CoolGoose
Copy link
Contributor

Great, thank you 🙇

@CoolGoose CoolGoose merged commit ed74031 into messagebird:master Apr 21, 2021
CoolGoose pushed a commit that referenced this pull request Jan 8, 2023
Use MessageReponse mapper instead of Message when calling list endpoint
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

Successfully merging this pull request may close these issues.

2 participants