From 706b8a37545151fdd2508d830043fc5e7c341da2 Mon Sep 17 00:00:00 2001 From: Mirko Chialastri Date: Mon, 23 Dec 2013 01:47:09 +0100 Subject: [PATCH] FIX: method signature for CakePHP 2.4.1 (E_STRICT warnings) --- Model/Behavior/CacheableBehavior.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Model/Behavior/CacheableBehavior.php b/Model/Behavior/CacheableBehavior.php index b0b7d93..715c4d8 100644 --- a/Model/Behavior/CacheableBehavior.php +++ b/Model/Behavior/CacheableBehavior.php @@ -32,7 +32,7 @@ class CacheableBehavior extends ModelBehavior { * @return void * @access public */ - function setup($model, $config = array()) { + function setup(Model $model, $config = array()) { $defaults = array( 'engine' => 'File', 'duration' => '+1 hour', @@ -146,12 +146,12 @@ public function setCache($model, $key, $data) { $this->_configure($model); return Cache::write($key, $data, 'cacheable' . $model->alias); } - - public function afterSave($model, $created) { + + public function afterSave(Model $model, $created, $options = array()) { $this->deleteCache($model); } - - public function afterDelete($model) { + + public function afterDelete(Model $model) { $this->deleteCache($model); } } \ No newline at end of file