Skip to content

Commit

Permalink
fixed warnings about protected static function
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettw committed Aug 10, 2017
1 parent 87e3e8f commit a87239b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/Pimf/Cache/Storages/Dba.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion core/Pimf/Cache/Storages/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion core/Pimf/Cache/Storages/Pdo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion core/Pimf/Cache/Storages/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function offsetUnset($key)
*
* @return int
*/
protected static function expiration($minutes)
public function expiration($minutes)
{
return time() + ($minutes * 60);
}
Expand Down

0 comments on commit a87239b

Please sign in to comment.