Skip to content

Commit

Permalink
Revert "Changing where bool is returned"
Browse files Browse the repository at this point in the history
This reverts commit 8f52cef.
  • Loading branch information
phpnut committed Dec 15, 2015
1 parent 464a266 commit dd211e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Cache/Cache.php
Expand Up @@ -278,7 +278,7 @@ public static function set($settings = array(), $value = null, $config = 'defaul
* @return void
*/
public static function gc($config = 'default', $expires = null) {
static::$_engines[$config]->gc($expires);
return static::$_engines[$config]->gc($expires);
}

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

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

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/Session/CacheSession.php
Expand Up @@ -73,7 +73,7 @@ public function write($id, $data) {
* @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'));
}

/**
Expand Down

0 comments on commit dd211e9

Please sign in to comment.