diff --git a/app/Model/Behavior/SphinxBehavior.php b/app/Model/Behavior/SphinxBehavior.php index 3240a89..4004469 100755 --- a/app/Model/Behavior/SphinxBehavior.php +++ b/app/Model/Behavior/SphinxBehavior.php @@ -24,7 +24,7 @@ class SphinxBehavior extends ModelBehavior */ var $sphinx = null; - function setup(&$model, $config = array()) + function setup(Model $model, $config = array()) { $settings = array_merge($this->_defaults, (array) $config); @@ -43,7 +43,7 @@ function setup(&$model, $config = array()) * @return array Modified query * @access public */ - function beforeFind(&$model, $query) + function beforeFind(Model $model, $query) { if (empty($query['sphinx']) || empty($query['search'])) return true; @@ -135,4 +135,4 @@ function beforeFind(&$model, $query) return $query; } } -?> \ No newline at end of file +?>