CustomVariableNumber: faster diff on type mismatch

This commit is contained in:
Thomas Gelf 2016-02-23 09:02:51 +01:00
parent 6c66f60ccc
commit ad9f232e7b
1 changed files with 4 additions and 0 deletions

View File

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