我正在使用Searchable-Behaviour-for-CakePHP
插件弹出错误:
Strict (2048):SearchableBehavior::beforeSave() 的声明应与 ModelBehavior::beforeSave(Model $model, $options = Array) [APP/Plugin/Searchable/Model/Behavior/SearchableBehavior.php,第 5 行] 兼容
Strict (2048):SearchableBehavior::afterSave() 的声明应与 ModelBehavior::afterSave(Model $model, $created, $options = Array) [APP/Plugin/Searchable/Model/Behavior/SearchableBehavior.php,行兼容5]
SearchableBehavior.php 的第 5 行是:
class SearchableBehavior extends ModelBehavior { // Line 5
public $__defaultSettings = array(
'foreignKey' => false,
'_index' => false,
'rebuildOnUpdate' => true,
'fields' => '*',
'stopwords_lang' => 'es'
);
任何想法?