From f55ee41827609116138f709e84c0aca2c73af690 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Mon, 1 Feb 2021 16:39:59 +0100 Subject: [PATCH] Align DocBlock Promise return types Currently most of the docblocks provide a return type inside the PromiseInterface like bool or array. This commit aligns it for all methods on the interface. --- src/CacheInterface.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CacheInterface.php b/src/CacheInterface.php index 3d52501..8e51c19 100644 --- a/src/CacheInterface.php +++ b/src/CacheInterface.php @@ -26,7 +26,7 @@ interface CacheInterface * * @param string $key * @param mixed $default Default value to return for cache miss or null if not given. - * @return PromiseInterface + * @return PromiseInterface */ public function get($key, $default = null); @@ -72,7 +72,7 @@ public function get($key, $default = null); * @param string $key * @param mixed $value * @param ?float $ttl - * @return PromiseInterface Returns a promise which resolves to `true` on success or `false` on error + * @return PromiseInterface Returns a promise which resolves to `true` on success or `false` on error */ public function set($key, $value, $ttl = null); @@ -93,7 +93,7 @@ public function set($key, $value, $ttl = null); * provide guarantees whether or not the item has been removed from cache. * * @param string $key - * @return PromiseInterface Returns a promise which resolves to `true` on success or `false` on error + * @return PromiseInterface Returns a promise which resolves to `true` on success or `false` on error */ public function delete($key);