Skip to content

Commit 9e7ddd7

Browse files
authored
Document why the equals() method is final
1 parent b687d92 commit 9e7ddd7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Enum.php

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ public function __toString()
7676
/**
7777
* Compares one Enum with another.
7878
*
79+
* This method is final, for more information read https://github.com/myclabs/php-enum/issues/4
80+
*
7981
* @return bool True if Enums are equal, false if not equal
8082
*/
8183
final public function equals(Enum $enum)

0 commit comments

Comments
 (0)