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
1 changed files with 4 additions and 0 deletions

View File

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