8000 minor #54624 [Validator] Update the "no TLD" error message (nicolas-g… · symfony/symfony@5ae5791 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ae5791

Browse files
minor #54624 [Validator] Update the "no TLD" error message (nicolas-grekas)
This PR was merged into the 7.1 branch. Discussion ---------- [Validator] Update the "no TLD" error message | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Could this message be easier to understand? ```diff - public string $tldMessage = 'This URL does not contain a TLD.'; + public string $tldMessage = 'This URL is missing a top-level domain.'; ``` /cc `@javiereguiluz` Commits ------- b1ba058 [Validator] Update the "no TLD" error message
2 parents 8bb3b19 + b1ba058 commit 5ae5791

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Component/Validator/Constraints

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/Constraints/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Url extends Constraint
3131
];
3232

3333
public string $message = 'This value is not a valid URL.';
34-
public string $tldMessage = 'This URL does not contain a TLD.';
34+
public string $tldMessage = 'This URL is missing a top-level domain.';
3535
public array $protocols = ['http', 'https'];
3636
public bool $relativeProtocol = false;
3737
public bool $requireTld = false;

0 commit comments

Comments
 (0)
0