diff options
Diffstat (limited to 'vendor/simplepie/simplepie/src/Cache/Base.php')
-rw-r--r-- | vendor/simplepie/simplepie/src/Cache/Base.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/vendor/simplepie/simplepie/src/Cache/Base.php b/vendor/simplepie/simplepie/src/Cache/Base.php index 08304648b..134d097fc 100644 --- a/vendor/simplepie/simplepie/src/Cache/Base.php +++ b/vendor/simplepie/simplepie/src/Cache/Base.php @@ -1,4 +1,6 @@ <?php + +declare(strict_types=1); /** * SimplePie * @@ -51,6 +53,7 @@ namespace SimplePie\Cache; * * @package SimplePie * @subpackage Caching + * @deprecated since SimplePie 1.8.0, use "Psr\SimpleCache\CacheInterface" instead */ interface Base { @@ -59,28 +62,28 @@ interface Base * * @var string */ - const TYPE_FEED = 'spc'; + public const TYPE_FEED = 'spc'; /** * Image cache type * * @var string */ - const TYPE_IMAGE = 'spi'; + public const TYPE_IMAGE = 'spi'; /** * Create a new cache object * * @param string $location Location string (from SimplePie::$cache_location) * @param string $name Unique ID for the cache - * @param string $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data + * @param Base::TYPE_FEED|Base::TYPE_IMAGE $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data */ public function __construct($location, $name, $type); /** * Save data to the cache * - * @param array|SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property + * @param array|\SimplePie\SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property * @return bool Successfulness */ public function save($data); |