ソースを参照

[Validator] Updated ContraintViolationList ArrayAccess setter to check equivalence to null instead of using is_null

Mark Challoner 14 年 前
コミット
1adbb763cb

+ 1 - 1
src/Symfony/Component/Validator/ConstraintViolationList.php

@@ -97,7 +97,7 @@ EOF;
      */
     public function offsetSet($offset, $value)
     {
-        if (is_null($offset)) {
+        if (null === $offset) {
             $this->violations[] = $value;
         } else {
             $this->violations[$offset] = $value;