Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
xabbuh commentedJul 19, 2023
IIRC we overrode the tests in other cases. But we should add a comment that the overridden methods can be removed in the |
MatTheCat commentedJul 19, 2023
Thanks@xabbuh, hope I did it correctly |
src/Symfony/Component/Form/Tests/Extension/Core/Type/UrlTypeTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
cb28233 toa2eac76CompareMatTheCat commentedNov 7, 2023
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 commentedNov 7, 2023
we should have a test ensuring that passing |
src/Symfony/Component/Form/Tests/Extension/Core/Type/UrlTypeTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Form/Tests/Extension/Core/Type/UrlTypeTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
MatTheCat commentedNov 7, 2023
@stof thanks for the review 🙏 Do you know how I can test whether a given code does not trigger a deprecation? |
stof commentedNov 7, 2023
@MatTheCat Don't put the |
nicolas-grekas commentedNov 7, 2023
You should add a test that runs into the situation, and if it triggers a deprecation, the CI will fail. |
src/Symfony/Component/Form/Tests/Extension/Core/Type/UrlTypeTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Form/Tests/Extension/Validator/Type/UrlTypeValidatorExtensionTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
nicolas-grekas left a comment
There was a problem hiding this 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
Uh oh!
There was an error while loading.Please reload this page.
16bcc43 to286bab1Comparefabpot commentedNov 18, 2023
Thank you@MatTheCat. |
…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`
Uh oh!
There was an error while loading.Please reload this page.
You would expect an
<input type="url">from theUrlType, but it is not possible as long asdefault_protocolhas 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 change
default_protocolfrom'http'tonullin 8.0, we must first deprecate not configuring it.