浏览代码

Fix tests

shalvah 4 年之前
父节点
当前提交
456d9204ef
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Extracting/ParsesValidationRules.php

+ 1 - 0
src/Extracting/ParsesValidationRules.php

@@ -600,6 +600,7 @@ trait ParsesValidationRules
 
         // 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);