We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eec06c commit ea35b65Copy full SHA for ea35b65
src/Enum.php
@@ -82,7 +82,7 @@ public function __toString()
82
*/
83
final public function equals(Enum $enum)
84
{
85
- return $this->getValue() === $enum->getValue();
+ return $this->getValue() === $enum->getValue() && get_called_class() == get_class($enum);
86
}
87
88
/**
0 commit comments