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

FixConstraintViolation#getMessageTemplate() to always returnstring#40416

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

Conversation

@Ocramius
Copy link
Contributor

QA
Branch?5.2
Bug fix?yes
New feature?no
Deprecations?no
Tickets
LicenseMIT
Doc PR

ConstraintViolation#getMessageTemplate()'s inherited signature states thatstring is
to be returned by it at all times, yet the implementation returnsnull when no message
template had been provided at instantiation.

This patch obviates it, returning an empty string when the
message template isnull.

Ref:#40415 (comment)

@carsonbot
Copy link

Hey!

Well done!, Im impressed by this PR.

I think@mdlutz24 has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@fabpotfabpot changed the base branch from5.x to5.2March 10, 2021 07:42
@fabpotfabpotforce-pushed thefix/ensure-message-template-respects-declared-interface-type branch fromcb47a35 tof6e9132CompareMarch 10, 2021 07:42
@fabpotfabpot changed the base branch from5.2 to5.xMarch 10, 2021 07:43
@fabpot
Copy link
Member

Can you rebase on the 5.2 branch (I cannot do it for you as I cannot push to your branch). Thank you.

`ConstraintViolation#getMessageTemplate()`'s inherited signature states that `string` isto be returned by it at all times, yet the implementation returns `null` when no messagetemplate had been provided at instantiation.This patch obviates it, returning an empty string when themessage template is `null`.Ref:symfony#40415 (comment)
@OcramiusOcramiusforce-pushed thefix/ensure-message-template-respects-declared-interface-type branch fromf6e9132 to72a464eCompareMarch 10, 2021 10:00
@OcramiusOcramius changed the base branch from5.x to5.2March 10, 2021 10:01
@fabpot
Copy link
Member

Thank you@Ocramius.

@fabpotfabpot merged commitdc8a43b intosymfony:5.2Mar 11, 2021
@fabpotfabpot mentioned this pull requestMar 29, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@derrabusderrabusderrabus approved these changes

@xabbuhxabbuhxabbuh approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

6 participants

@Ocramius@carsonbot@fabpot@derrabus@xabbuh@chalasr

[8]ページ先頭

©2009-2025 Movatter.jp