mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
be quiet phpstan
This commit is contained in:
@@ -25,11 +25,13 @@ namespace pocketmine\utils;
|
||||
|
||||
trait NotSerializable{
|
||||
|
||||
final public function __serialize(){
|
||||
/** @return mixed[] */
|
||||
final public function __serialize() : array{
|
||||
throw new \LogicException("Serialization of " . static::class . " objects is not allowed");
|
||||
}
|
||||
|
||||
final public function __unserialize(array $data){
|
||||
/** @param mixed[] $data */
|
||||
final public function __unserialize(array $data) : void{
|
||||
throw new \LogicException("Unserialization of " . static::class . " objects is not allowed");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user