diff --git a/core/lib/Drupal/Core/Cache/CacheBackendInterface.php b/core/lib/Drupal/Core/Cache/CacheBackendInterface.php index 9ecb3fbae7..975f8bf1a4 100644 --- a/core/lib/Drupal/Core/Cache/CacheBackendInterface.php +++ b/core/lib/Drupal/Core/Cache/CacheBackendInterface.php @@ -33,7 +33,7 @@ * The "valid" property of the returned object indicates whether the item is * valid or not. Defaults to FALSE. * - * @return \Drupal\Core\Cache\CacheItem|false + * @return \Drupal\Core\Cache\CacheItemInterface|false * The cache item or FALSE on failure. * * @see \Drupal\Core\Cache\CacheBackendInterface::getMultiple() @@ -55,7 +55,7 @@ public function get($cid, $allow_invalid = FALSE); * "valid" property of the returned objects indicates whether the items are * valid or not. Defaults to FALSE. * - * @return \Drupal\Core\Cache\CacheItem[] + * @return \Drupal\Core\Cache\CacheItemInterface[] * An array of cache item objects indexed by cache ID. * * @see \Drupal\Core\Cache\CacheBackendInterface::get() diff --git a/core/lib/Drupal/Core/Cache/CacheItem.php b/core/lib/Drupal/Core/Cache/CacheItem.php index d216a89448..b9d1704ffc 100644 --- a/core/lib/Drupal/Core/Cache/CacheItem.php +++ b/core/lib/Drupal/Core/Cache/CacheItem.php @@ -1,10 +1,5 @@