mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/16955] Add stubs for cache classes and clean up
PHPBB3-16955
This commit is contained in:
11
phpBB/phpbb/cache/driver/base.php
vendored
11
phpBB/phpbb/cache/driver/base.php
vendored
@@ -199,7 +199,7 @@ abstract class base implements \phpbb\cache\driver\driver_interface
|
||||
*
|
||||
* @param string $dir Directory to remove
|
||||
*
|
||||
* @return null
|
||||
* @return void
|
||||
*/
|
||||
protected function remove_dir($dir)
|
||||
{
|
||||
@@ -231,4 +231,13 @@ abstract class base implements \phpbb\cache\driver\driver_interface
|
||||
|
||||
@rmdir($dir);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch an item from the cache
|
||||
*
|
||||
* @param string $var Cache key
|
||||
*
|
||||
* @return mixed Cached data
|
||||
*/
|
||||
abstract protected function _read(string $var);
|
||||
}
|
||||
|
Reference in New Issue
Block a user