vamp
(Vamphouse)
1
protected function compareValues($value,$value2)
{
switch($this->operator)
{
case '=':
case '==':
return ($this->strict && $value===$compareValue) || (!$this->strict && $value==$compareValue);
case '!=':
return ($this->strict && $value!==$compareValue) || (!$this->strict && $value!=$compareValue);
case '>':
return $value>$compareValue;
}
}
- great! but this code was not used by validator, why!?
qiang
(Qiang Xue)
2
Thanks. Actually this method is not used. I just removed it.