Skip to content

Commit 9308823

Browse files
committed
private methods are already final by definition
1 parent 75aa56b commit 9308823

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MabeEnum/Enum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ abstract class Enum
4747
* @throws InvalidArgumentException On an unknwon or invalid value
4848
* @throws LogicException On ambiguous constant values
4949
*/
50-
final private function __construct($value, $ordinal = null)
50+
private function __construct($value, $ordinal = null)
5151
{
5252
$this->value = $value;
5353
$this->ordinal = $ordinal;
@@ -67,7 +67,7 @@ final public function __toString()
6767
* @throws LogicException Enums are not cloneable
6868
* because instances are implemented as singletons
6969
*/
70-
final private function __clone()
70+
private function __clone()
7171
{
7272
throw new LogicException('Enums are not cloneable');
7373
}

0 commit comments

Comments
 (0)