Removed type hint from UnCompressInterface.

This commit is contained in:
李铭昕 2021-09-08 11:09:23 +08:00
parent ccd7d8b6fe
commit db5a7488ee
2 changed files with 2 additions and 2 deletions

View File

@ -13,5 +13,5 @@ namespace Hyperf\Contract;
interface UnCompressInterface
{
public function uncompress(): CompressInterface;
public function uncompress();
}

View File

@ -35,7 +35,7 @@ class ModelMeta implements UnCompressInterface
$this->key = $key;
}
public function uncompress(): CompressInterface
public function uncompress()
{
if (is_null($this->key)) {
return new $this->class();