CustomVariableString: immediate false for non-strings
This commit is contained in:
parent
4510ab3c42
commit
0c121cf4fe
|
@ -8,6 +8,10 @@ class CustomVariableString extends CustomVariable
|
|||
{
|
||||
public function equals(CustomVariable $var)
|
||||
{
|
||||
if (! $var instanceof CustomVariableString) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $var->getValue() === $this->getValue();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue