Skip to content

Commit 52195a0

Browse files
committed
equals() method should be final
1 parent 527b4be commit 52195a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Enum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function __toString()
7878
*
7979
* @return bool True if Enums are equal, false if not equal
8080
*/
81-
public function equals(Enum $enum)
81+
final public function equals(Enum $enum)
8282
{
8383
return $this->getValue() === $enum->getValue();
8484
}

0 commit comments

Comments
 (0)