mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
be quiet phpstan
This commit is contained in:
parent
f95eb6a218
commit
ed1e7322dd
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user