Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Notifier] Bring consistency to bridges#50308

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:6.3fromnicolas-grekas:n-opt
May 13, 2023

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?6.3
Bug fix?no
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

/**
* @return $this
*/
publicfunctiondiffusionName(int$diffusionName):static
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

it's a bit weird to me that an option named "diffusionName" only accepts integers
can you please confirm this is correct@gnito-org?

OskarStark reacted with eyes emoji
@nicolas-grekas
Copy link
MemberAuthor

The TL;DR of this PR is that options shouldn't have getters when they're not required, and their setters should not start withset*.
The options should also not provide yet another way to define what the messages can already convey (from, recipient, etc.), unless there is a compelling reason to. (There might be existing option classes that violate this rule, but that shouldn't be a reason to add more.)

The rest is more CS-related.

/cc@OskarStark@alamirault since you contribute to this component. 🙏

OskarStark reacted with rocket emoji

thrownewInvalidArgumentException(sprintf('The "From" number "%s" is not a valid phone number. The number must be in E.164 format.',$this->from));
$options['from'] =$message->getFrom() ?:$this->from;
$options['to'] = [$message->getPhone()];
$options['accountId'] ??=$this->accountId;
Copy link
Contributor

Choose a reason for hiding this comment

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

Before we used account_id kn the request, now accountId, is it correct or did I overlooked sth?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

The option array should be aligned with the API. The API usesaccountId, that's why.

OskarStark reacted with rocket emoji
@nicolas-grekas
Copy link
MemberAuthor

I'm merging to fix the CI and because this is ready to me, but feel free to comment after the merge if needed!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot left review comments

@OskarStarkOskarStarkOskarStark left review comments

Assignees

No one assigned

Projects

None yet

Milestone

6.3

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@fabpot@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp