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

[Validator] let theSlugValidator acceptAsciiSlugger results#60426

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:7.3fromxabbuh:pr-58542
May 16, 2025

Conversation

xabbuh
Copy link
Member

QA
Branch?7.3
Bug fix?no
New feature?no
Deprecations?no
IssuesFix#58542 (comment)
LicenseMIT

Kocal reacted with heart emoji
@carsonbotcarsonbot added this to the7.3 milestoneMay 15, 2025
@xabbuhxabbuh added the ❄️ Feature FreezeImportant Pull Requests to finish before the next Symfony "feature freeze" labelMay 15, 2025
@OskarStarkOskarStark changed the title[Validator] let the SlugValidator accept AsciiSlugger results[Validator] let theSlugValidator acceptAsciiSlugger resultsMay 15, 2025
/**
* @testWith ["PHP"]
* @testWith ["Symfony is cool"]
* @testWith ["Lorem ipsum dolor sit amet"]

Choose a reason for hiding this comment

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

Nitpick, you may use only onetestWith instead of three, like the other usage above?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

In fact, it's even required not to repeat the annotation.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Before:

$ php ./phpunit src/Symfony/Component/Validator/Tests/Constraints/SlugValidatorTest.phpPHPUnit 9.6.23 by Sebastian Bergmann and contributors.Testing Symfony\Component\Validator\Tests\Constraints\SlugValidatorTest..............                                                    14 / 14 (100%)Time: 00:00.059, Memory: 39.02 MBOK (14 tests, 19 assertions)

Now:

$ php ./phpunit src/Symfony/Component/Validator/Tests/Constraints/SlugValidatorTest.phpPHPUnit 9.6.23 by Sebastian Bergmann and contributors.Testing Symfony\Component\Validator\Tests\Constraints\SlugValidatorTest.................                                                 17 / 17 (100%)Time: 00:00.047, Memory: 43.86 MBOK (17 tests, 22 assertions)

alexandre-daubois reacted with thumbs up emoji
@nicolas-grekas
Copy link
Member

Thank you@xabbuh.

@nicolas-grekasnicolas-grekas merged commitc0a1a3a intosymfony:7.3May 16, 2025
10 of 11 checks passed
@xabbuhxabbuh deleted the pr-58542 branchMay 16, 2025 10:25
@fabpotfabpot mentioned this pull requestMay 25, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@alexandre-dauboisalexandre-dauboisalexandre-daubois approved these changes

Assignees
No one assigned
Labels
❄️ Feature FreezeImportant Pull Requests to finish before the next Symfony "feature freeze"Status: ReviewedValidator
Projects
None yet
Milestone
7.3
Development

Successfully merging this pull request may close these issues.

4 participants
@xabbuh@nicolas-grekas@alexandre-daubois@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp