Forcing bool return

This commit is contained in:
Larry E. Masters 2015-12-13 19:19:11 -06:00
parent 130e854c30
commit fac95baee7
6 changed files with 15 additions and 8 deletions

View file

@ -83,7 +83,7 @@ class CacheSession implements CakeSessionHandlerInterface {
* @return bool Success
*/
public function gc($expires = null) {
return Cache::gc(Configure::read('Session.handler.config'), $expires);
return (bool)Cache::gc(Configure::read('Session.handler.config'), $expires);
}
}