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 57d7bdb commit dcc17a8Copy full SHA for dcc17a8
src/MabeEnum/Enum.php
@@ -46,7 +46,7 @@ abstract class Enum
46
* @param scalar $value The value to select
47
* @param int|null $ordinal
48
*/
49
- private function __construct($value, $ordinal = null)
+ final private function __construct($value, $ordinal = null)
50
{
51
$this->value = $value;
52
$this->ordinal = $ordinal;
@@ -66,7 +66,7 @@ final public function __toString()
66
* @throws LogicException Enums are not cloneable
67
* because instances are implemented as singletons
68
69
- private function __clone()
+ final private function __clone()
70
71
throw new LogicException('Enums are not cloneable');
72
}
0 commit comments