mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 00:55:14 +00:00
Standardize clone denying
This commit is contained in:
@ -27,6 +27,7 @@ use function preg_match;
|
||||
|
||||
trait EnumTrait{
|
||||
use RegistryTrait;
|
||||
use NotCloneable;
|
||||
use NotSerializable;
|
||||
|
||||
/**
|
||||
@ -98,8 +99,4 @@ trait EnumTrait{
|
||||
public function equals(self $other) : bool{
|
||||
return $this->enumName === $other->enumName;
|
||||
}
|
||||
|
||||
public function __clone(){
|
||||
throw new \LogicException("Enum members cannot be cloned");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user