diff --git a/src/Extracting/ParsesValidationRules.php b/src/Extracting/ParsesValidationRules.php index cfd62ac8..7ae2eb27 100644 --- a/src/Extracting/ParsesValidationRules.php +++ b/src/Extracting/ParsesValidationRules.php @@ -600,6 +600,7 @@ protected function getDescription(string $rule, array $arguments = [], $baseType // Convert messages from failure type ("The :attribute is not a valid date.") to info ("The :attribute must be a valid date.") $description = str_replace(['is not', 'does not'], ['must be', 'must'], $description); + $description = str_replace('may not', 'must not', $description); foreach ($arguments as $placeholder => $argument) { $description = str_replace($placeholder, $argument, $description);