mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Revert "Changing where bool is returned"
This reverts commit 8f52cefdcc
.
This commit is contained in:
parent
464a266fc7
commit
dd211e9158
2 changed files with 3 additions and 3 deletions
|
@ -278,7 +278,7 @@ class Cache {
|
|||
* @return void
|
||||
*/
|
||||
public static function gc($config = 'default', $expires = null) {
|
||||
static::$_engines[$config]->gc($expires);
|
||||
return static::$_engines[$config]->gc($expires);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -452,7 +452,7 @@ class Cache {
|
|||
|
||||
$success = static::$_engines[$config]->delete($settings['prefix'] . $key);
|
||||
static::set(null, $config);
|
||||
return $success;
|
||||
return (bool)$success;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -73,7 +73,7 @@ class CacheSession implements CakeSessionHandlerInterface {
|
|||
* @return bool True for successful delete, false otherwise.
|
||||
*/
|
||||
public function destroy($id) {
|
||||
return (bool)Cache::delete($id, Configure::read('Session.handler.config'));
|
||||
return Cache::delete($id, Configure::read('Session.handler.config'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue