be quiet phpstan

This commit is contained in:
Dylan K. Taylor 2021-09-03 21:16:37 +01:00
parent f95eb6a218
commit ed1e7322dd
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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");
}
}