aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/simplepie/simplepie/src/Cache/Base.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-01-27 07:28:21 +0000
committerMario <mario@mariovavti.com>2023-01-27 07:28:21 +0000
commit9a16bf65bdd5858a2da8e850e9825b2a5498b044 (patch)
tree4208cf7ba1e176d79b82b00982a783988b5e45a7 /vendor/simplepie/simplepie/src/Cache/Base.php
parentc3d3dc9d92d14dbcfbaf39c4cc9ad4c120812a3d (diff)
downloadvolse-hubzilla-9a16bf65bdd5858a2da8e850e9825b2a5498b044.tar.gz
volse-hubzilla-9a16bf65bdd5858a2da8e850e9825b2a5498b044.tar.bz2
volse-hubzilla-9a16bf65bdd5858a2da8e850e9825b2a5498b044.zip
update simplepie
Diffstat (limited to 'vendor/simplepie/simplepie/src/Cache/Base.php')
-rw-r--r--vendor/simplepie/simplepie/src/Cache/Base.php11
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);