From ea98fd352e55f6274f9718a46bdba93a7030f66b Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Wed, 24 Jan 2024 16:09:10 +0100 Subject: [PATCH] TASK: Correct doc types StringFrontend::get ... and document FrontendInterface::get correctly --- Neos.Cache/Classes/Frontend/FrontendInterface.php | 2 +- Neos.Cache/Classes/Frontend/StringFrontend.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Neos.Cache/Classes/Frontend/FrontendInterface.php b/Neos.Cache/Classes/Frontend/FrontendInterface.php index 2b4ac9408b..8de9127f6c 100644 --- a/Neos.Cache/Classes/Frontend/FrontendInterface.php +++ b/Neos.Cache/Classes/Frontend/FrontendInterface.php @@ -62,7 +62,7 @@ public function set(string $entryIdentifier, $data, array $tags = [], int $lifet * Finds and returns data from the cache. * * @param string $entryIdentifier Something which identifies the cache entry - depends on concrete cache - * @return mixed + * @return mixed The value or false if the cache entry could not be loaded * @api */ public function get(string $entryIdentifier); diff --git a/Neos.Cache/Classes/Frontend/StringFrontend.php b/Neos.Cache/Classes/Frontend/StringFrontend.php index 1663f91eba..6d0a33568d 100644 --- a/Neos.Cache/Classes/Frontend/StringFrontend.php +++ b/Neos.Cache/Classes/Frontend/StringFrontend.php @@ -58,7 +58,7 @@ public function set(string $entryIdentifier, $string, array $tags = [], int $lif * Finds and returns a variable value from the cache. * * @param string $entryIdentifier Identifier of the cache entry to fetch - * @return string The value + * @return string|false The value or false if the cache entry could not be loaded * @throws \InvalidArgumentException * @api */