You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #54588 [Validator] prepare for changing the default value of the requireTld option (xabbuh)
This PR was merged into the 7.1 branch.
Discussion
----------
[Validator] prepare for changing the default value of the requireTld option
| Q | A
| ------------- | ---
| Branch? | 7.1
| Bug fix? | no
| New feature? | no
| Deprecations? | yes
| Issues | related to #50871
| License | MIT
Commits
-------
7e9c812af1 prepare for changing the default value of the requireTld option
Copy file name to clipboardExpand all lines: Constraints/Url.php
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,10 @@ public function __construct(
57
57
) {
58
58
parent::__construct($options, $groups, $payload);
59
59
60
+
if (null === ($options['requireTld'] ?? $requireTld)) {
61
+
trigger_deprecation('symfony/validator', '7.1', 'Not passing a value for the "requireTld" option to the Url constraint is deprecated. Its default value will change to "true".');
0 commit comments