X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fseekat;a=blobdiff_plain;f=lib%2FAPI%2FCall%2FCache%2FService%2FHollow.php;fp=lib%2FAPI%2FCall%2FCache%2FService%2FHollow.php;h=dd81ba352ecaf5b6615901aa01b59b0f6c79df74;hp=f08d6d65b919bb114c4263f489719aa8f723f682;hb=654d736df2c46ec2520f73e9089d06a44f2b9c50;hpb=2121556150be871684b5046af7cf250b8219128d diff --git a/lib/API/Call/Cache/Service/Hollow.php b/lib/API/Call/Cache/Service/Hollow.php index f08d6d6..dd81ba3 100644 --- a/lib/API/Call/Cache/Service/Hollow.php +++ b/lib/API/Call/Cache/Service/Hollow.php @@ -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 = []; }