Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Jun 7, 2021
1 parent 0c16c0a commit 456d920
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Extracting/ParsesValidationRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 456d920

Please sign in to comment.