From a87239beda7b59656841ac8c108f00a17e8596e4 Mon Sep 17 00:00:00 2001 From: Garrett W Date: Thu, 10 Aug 2017 15:59:39 +0000 Subject: [PATCH] fixed warnings about protected static function --- core/Pimf/Cache/Storages/Dba.php | 2 +- core/Pimf/Cache/Storages/File.php | 2 +- core/Pimf/Cache/Storages/Pdo.php | 2 +- core/Pimf/Cache/Storages/Storage.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/Pimf/Cache/Storages/Dba.php b/core/Pimf/Cache/Storages/Dba.php index 0ee0a75..731a2bc 100644 --- a/core/Pimf/Cache/Storages/Dba.php +++ b/core/Pimf/Cache/Storages/Dba.php @@ -103,7 +103,7 @@ public function put($key, $value, $minutes) return; } - $value = self::expiration($minutes) . serialize($value); + $value = $this->expiration($minutes) . serialize($value); if (true === $this->has($key)) { return dba_replace($key, $value, $this->dba); diff --git a/core/Pimf/Cache/Storages/File.php b/core/Pimf/Cache/Storages/File.php index 0cc0f4d..c59a152 100644 --- a/core/Pimf/Cache/Storages/File.php +++ b/core/Pimf/Cache/Storages/File.php @@ -83,7 +83,7 @@ public function put($key, $value, $minutes) return null; } - $value = self::expiration($minutes) . serialize($value); + $value = $this->expiration($minutes) . serialize($value); return file_put_contents($this->path . $key, $value, LOCK_EX); } diff --git a/core/Pimf/Cache/Storages/Pdo.php b/core/Pimf/Cache/Storages/Pdo.php index 22c6ea1..b84f758 100644 --- a/core/Pimf/Cache/Storages/Pdo.php +++ b/core/Pimf/Cache/Storages/Pdo.php @@ -86,7 +86,7 @@ public function put($key, $value, $minutes) { $key = $this->key . $key; $value = serialize($value); - $expiration = self::expiration($minutes); + $expiration = $this->expiration($minutes); try { $sth = $this->pdo->prepare( diff --git a/core/Pimf/Cache/Storages/Storage.php b/core/Pimf/Cache/Storages/Storage.php index cf35b30..c1507c5 100644 --- a/core/Pimf/Cache/Storages/Storage.php +++ b/core/Pimf/Cache/Storages/Storage.php @@ -198,7 +198,7 @@ public function offsetUnset($key) * * @return int */ - protected static function expiration($minutes) + public function expiration($minutes) { return time() + ($minutes * 60); }