Browse Source

Fix Hash::__matches with object

Hideki Kinjyo 8 years ago
parent
commit
9cd50f15fe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Utility/Hash.php

+ 2 - 2
src/Utility/Hash.php

@@ -276,8 +276,8 @@ class Hash
                 if (!preg_match($val, $prop)) {
                     return false;
                 }
-            } elseif (($op === '=' && $prop !== $val) ||
-                ($op === '!=' && $prop === $val) ||
+            } elseif (($op === '=' && $prop != $val) ||
+                ($op === '!=' && $prop == $val) ||
                 ($op === '>' && $prop <= $val) ||
                 ($op === '<' && $prop >= $val) ||
                 ($op === '>=' && $prop < $val) ||