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

Update validation.rst#4789

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

Closed
ifdattic wants to merge3 commits intosymfony:2.3fromifdattic:patch-10
Closed

Update validation.rst#4789

ifdattic wants to merge3 commits intosymfony:2.3fromifdattic:patch-10

Conversation

@ifdattic
Copy link
Contributor

QA
Doc fix?yes
New docs?no
Applies to2.3
Fixed tickets

Some fixes can be a bit "controversial".

Due to PRhttps://github.com/symfony/symfony-docs/pull/4779/files not all changes were made.

Something to keep in mind is what due tohttps://github.com/symfony/symfony-docs/pull/4779/files usingAssert\... if arguments are kept on the same line the possibility of horizontal scrollbar (especially on the smaller screens) is quite high.

Also for most use cases I think adding PHP constraints is better if arguments are on different lines ("easier to read" and easier to spot errors

| Q             | A| ------------- | ---| Doc fix?      | yes| New docs?     | no| Applies to    | 2.3| Fixed tickets | Some fixes can be a bit "controversial".Due to PRhttps://github.com/symfony/symfony-docs/pull/4779/files not all changes were made.Something to keep in mind is what due tohttps://github.com/symfony/symfony-docs/pull/4779/files using `Assert\...` if arguments are kept on the same line the possibility of horizontal scrollbar (especially on the smaller screens) is quite high.Also for most use cases I think adding PHP constraints is better if arguments are on different lines ("easier to read" and easier to spot errors
@ifdattic
Copy link
ContributorAuthor

I would like to split line 344 to remove horizontal scrollbar, but wasn't sure of the best way to do it

Copy link
Member

Choose a reason for hiding this comment

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

While it's not your fault, you should remove the serial comma before "or"

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yea, I thought it wasn't needed but just left it as is, will fix on the next commit.

@wouterj
Copy link
Member

- Choice:    choices: [male, female]    message: Choose a valid gender.

@ifdattic
Copy link
ContributorAuthor

Yes, thank you, completely slipped my mind that is how you do in YAML

Copy link
Member

Choose a reason for hiding this comment

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

You need to add the former label to be BC:

.. _translation-constraint-messages:Translating Constraint Messages-------------------------------

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Thanks, will change it now

@xabbuh
Copy link
Member

What do we do here?

@wouterj
Copy link
Member

Closing as none of the code blocks are violating the 85 character limit we've decided on after this PR was opened (only the schema definitions do, but we don't care about them).

The only other change in here is implementing UserInterface, which is already done.

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

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@ifdattic@wouterj@xabbuh

[8]ページ先頭

©2009-2025 Movatter.jp