CustomVariableNumber: faster diff on type mismatch
This commit is contained in:
parent
6c66f60ccc
commit
ad9f232e7b
|
@ -8,6 +8,10 @@ class CustomVariableNumber extends CustomVariable
|
|||
{
|
||||
public function equals(CustomVariable $var)
|
||||
{
|
||||
if (! $var instanceof CustomVariableNumber) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $var->getValue() === $this->getValue();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue