Skip to content

Commit dd211e9

Browse files
committed
Revert "Changing where bool is returned"
This reverts commit 8f52cef.
1 parent 464a266 commit dd211e9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/Cake/Cache/Cache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public static function set($settings = array(), $value = null, $config = 'defaul
278278
* @return void
279279
*/
280280
public static function gc($config = 'default', $expires = null) {
281-
static::$_engines[$config]->gc($expires);
281+
return static::$_engines[$config]->gc($expires);
282282
}
283283

284284
/**
@@ -452,7 +452,7 @@ public static function delete($key, $config = 'default') {
452452

453453
$success = static::$_engines[$config]->delete($settings['prefix'] . $key);
454454
static::set(null, $config);
455-
return $success;
455+
return (bool)$success;
456456
}
457457

458458
/**

lib/Cake/Model/Datasource/Session/CacheSession.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function write($id, $data) {
7373
* @return bool True for successful delete, false otherwise.
7474
*/
7575
public function destroy($id) {
76-
return (bool)Cache::delete($id, Configure::read('Session.handler.config'));
76+
return Cache::delete($id, Configure::read('Session.handler.config'));
7777
}
7878

7979
/**

0 commit comments

Comments
 (0)