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

[Form] Deprecate not configuring thedefault_protocol option of theUrlType#50922

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
fabpot merged 1 commit intosymfony:7.1fromMatTheCat:ticket_50871
Nov 18, 2023

Conversation

@MatTheCat
Copy link
Contributor

@MatTheCatMatTheCat commentedJul 9, 2023
edited
Loading

QA
Branch?7.1
Bug fix?no
New feature?no
Deprecations?yes
TicketsPart of#50871
LicenseMIT
Doc PRN/A

You would expect an<input type="url"> from theUrlType, but it is not possible as long asdefault_protocol has a value, because then you have to accept inputs that are not URLs (and you get an<input type="text" inputmode="url">).

In order to changedefault_protocol from'http' tonull in 8.0, we must first deprecate not configuring it.

@xabbuh
Copy link
Member

IIRC we overrode the tests in other cases. But we should add a comment that the overridden methods can be removed in the7.0 branch.

@MatTheCat
Copy link
ContributorAuthor

Thanks@xabbuh, hope I did it correctly

@MatTheCat
Copy link
ContributorAuthor

Is it still time to merge this in 6.4 or will I have to rebase on 7.1 when the branch will be created?

@stof
Copy link
Member

stof commentedNov 7, 2023

we should have a test ensuring that passingnull explicitly (to not have any default protocol) works without triggering a deprecation. Otherwise it will make it impossible to have that behavior (which is the wanted one when you want an<input type="url">) without triggering a deprecation.

@MatTheCat
Copy link
ContributorAuthor

@stof thanks for the review 🙏

Do you know how I can test whether a given code does not trigger a deprecation?

@stof
Copy link
Member

stof commentedNov 7, 2023

@MatTheCat Don't put the@group legacy on the test, and the phpunit bridge will already make the test fail if it triggers a deprecation.
But looking at the test file in full (not visible in the diff of the PR), we already have some tests passingnull explicitly so this will be fine.

MatTheCat reacted with thumbs up emoji

@nicolas-grekas
Copy link
Member

You should add a test that runs into the situation, and if it triggers a deprecation, the CI will fail.

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

I think this can wait for 7.1

@nicolas-grekasnicolas-grekas modified the milestones:6.4,7.1Nov 15, 2023
@MatTheCatMatTheCatforce-pushed theticket_50871 branch 3 times, most recently from16bcc43 to286bab1CompareNovember 18, 2023 14:46
@fabpot
Copy link
Member

Thank you@MatTheCat.

@fabpotfabpot merged commit32ab86f intosymfony:7.1Nov 18, 2023
@MatTheCatMatTheCat deleted the ticket_50871 branchNovember 18, 2023 20:45
@fabpotfabpot mentioned this pull requestMay 2, 2024
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull requestDec 2, 2024
…col` (alexislefebvre)This PR was submitted for the 5.4 branch but it was merged into the 6.4 branch instead.Discussion----------[Form] URLType : explain `null` value for `default_protocol`Sources:-symfony/symfony#30635-symfony/symfony#50922Commits-------0b521e7 URLType: explain `null` value for `default_protocol`
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh left review comments

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@stofstofstof approved these changes

@ycerutoycerutoAwaiting requested review from ycerutoyceruto is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

7.1

Development

Successfully merging this pull request may close these issues.

6 participants

@MatTheCat@xabbuh@stof@nicolas-grekas@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp