Fabien Potencier 14 년 전
부모
커밋
66064cc8fc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Symfony/Component/Validator/Constraints/RegexValidator.php

+ 1 - 1
src/Symfony/Component/Validator/Constraints/RegexValidator.php

@@ -35,7 +35,7 @@ class RegexValidator extends ConstraintValidator
 
         $value = (string) $value;
 
-        if ($constraint->match XOR preg_match($constraint->pattern, $value)) {
+        if ($constraint->match xor preg_match($constraint->pattern, $value)) {
             $this->setMessage($constraint->message, array('{{ value }}' => $value));
 
             return false;