Skip to content

feat: added new MMS types #541

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

Merged
merged 1 commit into from
Jul 14, 2025
Merged

feat: added new MMS types #541

merged 1 commit into from
Jul 14, 2025

Conversation

manchuck
Copy link
Collaborator

Description

Motivation and Context

How Has This Been Tested?

Example Output or Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 82.14286% with 10 lines in your changes missing coverage. Please review.

Project coverage is 84.51%. Comparing base (6287ab4) to head (7624e2c).

Files with missing lines Patch % Lines
src/Messages/MessageObjects/ContentObject.php 54.54% 10 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #541      +/-   ##
============================================
- Coverage     84.52%   84.51%   -0.02%     
- Complexity     2819     2839      +20     
============================================
  Files           258      262       +4     
  Lines          7782     7838      +56     
============================================
+ Hits           6578     6624      +46     
- Misses         1204     1214      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

superchilled
superchilled previously approved these changes Jul 14, 2025
Copy link

@superchilled superchilled left a comment

Choose a reason for hiding this comment

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

LGTM

@superchilled superchilled self-requested a review July 14, 2025 09:48
@superchilled superchilled dismissed their stale review July 14, 2025 09:50

Having looked at the code snippet examples I have a question about the content type.

public function toArray(): array
{
$returnArray = $this->getBaseMessageUniversalOutputArray();
$returnArray['content'] = $this->content->toArray();

Choose a reason for hiding this comment

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

Is this an array that can contain multiple content objects?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yea the content object will return an array of objects

@manchuck manchuck merged commit b41ec3c into main Jul 14, 2025
19 checks passed
@manchuck manchuck deleted the new-mms-types branch July 14, 2025 13:57
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.

3 participants