Fix wrong PublicDomainSuffix template

When the input is not a public domain suffix, we should say that it's
"not" a a public domain suffix, not that it is one.

Reported on: https://github.com/Respect/Validation/issues/1539
This commit is contained in:
Henrique Moody 2026-01-06 07:18:25 +01:00
commit 79f214c3bc
No known key found for this signature in database
GPG key ID: 221E9281655813A6

View file

@ -22,7 +22,7 @@ class PublicDomainSuffixException extends ValidationException
self::STANDARD => '{{name}} must be a public domain suffix',
],
self::MODE_NEGATIVE => [
self::STANDARD => '{{name}} must be a public domain suffix',
self::STANDARD => '{{name}} must not be a public domain suffix',
],
];
}