CustomVariableString: immediate false for non-strings

This commit is contained in:
Thomas Gelf 2015-11-01 00:54:43 +01:00
parent 4510ab3c42
commit 0c121cf4fe

View File

@ -8,6 +8,10 @@ class CustomVariableString extends CustomVariable
{ {
public function equals(CustomVariable $var) public function equals(CustomVariable $var)
{ {
if (! $var instanceof CustomVariableString) {
return false;
}
return $var->getValue() === $this->getValue(); return $var->getValue() === $this->getValue();
} }