update to PHP-8.1
[m6w6/seekat] / lib / API / Call / Cache / Service / Hollow.php
index f08d6d65b919bb114c4263f489719aa8f723f682..dd81ba352ecaf5b6615901aa01b59b0f6c79df74 100644 (file)
@@ -6,7 +6,7 @@ use http\Client\Response;
 use seekat\API\Call\Cache\Service;
 
 final class Hollow implements Service {
-       private $storage = [];
+       private array $storage = [];
 
        public function fetch(string $key, Response &$response = null) : bool {
                if (isset($this->storage[$key])) {
@@ -21,11 +21,11 @@ final class Hollow implements Service {
                return true;
        }
 
-       public function del(string $key) {
+       public function del(string $key) : void {
                unset($this->storage[$key]);
        }
 
-       public function clear() {
+       public function clear() : void {
                $this->storage = [];
        }