Upgrade to 3.2.5

This commit is contained in:
Bastian Allgeier
2019-09-24 11:00:59 +02:00
parent ff9b5b1861
commit 447a9dd266
234 changed files with 1990 additions and 1224 deletions

View File

@@ -15,7 +15,6 @@ use APCUIterator;
*/
class ApcuCache extends Cache
{
/**
* Determines if an item exists in the cache
*
@@ -59,7 +58,7 @@ class ApcuCache extends Cache
* needs to return a Value object or null if not found
*
* @param string $key
* @return Kirby\Cache\Value|null
* @return \Kirby\Cache\Value|null
*/
public function retrieve(string $key)
{

View File

@@ -16,7 +16,6 @@ namespace Kirby\Cache;
*/
abstract class Cache
{
/**
* Stores all options for the driver
* @var array
@@ -71,7 +70,7 @@ abstract class Cache
* this needs to be defined by the driver
*
* @param string $key
* @return Kirby\Cache\Value|null
* @return \Kirby\Cache\Value|null
*/
abstract public function retrieve(string $key);
@@ -96,7 +95,7 @@ abstract class Cache
$value = $this->retrieve($key);
// check for a valid cache value
if (!is_a($value, Value::class)) {
if (!is_a($value, 'Kirby\Cache\Value')) {
return $default;
}
@@ -141,7 +140,7 @@ abstract class Cache
$value = $this->retrieve($key);
// check for a valid Value object
if (!is_a($value, Value::class)) {
if (!is_a($value, 'Kirby\Cache\Value')) {
return false;
}
@@ -182,7 +181,7 @@ abstract class Cache
$value = $this->retrieve($key);
// check for a valid Value object
if (!is_a($value, Value::class)) {
if (!is_a($value, 'Kirby\Cache\Value')) {
return false;
}

View File

@@ -16,7 +16,6 @@ use Kirby\Toolkit\F;
*/
class FileCache extends Cache
{
/**
* Full root including prefix
* @var string
@@ -93,7 +92,7 @@ class FileCache extends Cache
* needs to return a Value object or null if not found
*
* @param string $key
* @return Kirby\Cache\Value|null
* @return \Kirby\Cache\Value|null
*/
public function retrieve(string $key)
{

View File

@@ -13,7 +13,6 @@ namespace Kirby\Cache;
*/
class MemCached extends Cache
{
/**
* store for the memache connection
* @var Memcached
@@ -65,7 +64,7 @@ class MemCached extends Cache
* needs to return a Value object or null if not found
*
* @param string $key
* @return Kirby\Cache\Value|null
* @return \Kirby\Cache\Value|null
*/
public function retrieve(string $key)
{

View File

@@ -13,7 +13,6 @@ namespace Kirby\Cache;
*/
class MemoryCache extends Cache
{
/**
* Cache data
* @var array
@@ -45,7 +44,7 @@ class MemoryCache extends Cache
* needs to return a Value object or null if not found
*
* @param string $key
* @return Kirby\Cache\Value|null
* @return \Kirby\Cache\Value|null
*/
public function retrieve(string $key)
{

View File

@@ -13,7 +13,6 @@ namespace Kirby\Cache;
*/
class NullCache extends Cache
{
/**
* Writes an item to the cache for a given number of minutes and
* returns whether the operation was successful
@@ -38,7 +37,7 @@ class NullCache extends Cache
* needs to return a Value object or null if not found
*
* @param string $key
* @return Kirby\Cache\Value|null
* @return \Kirby\Cache\Value|null
*/
public function retrieve(string $key)
{

View File

@@ -17,7 +17,6 @@ use Throwable;
*/
class Value
{
/**
* Cached value
* @var mixed