cakephp-mongodb icon indicating copy to clipboard operation
cakephp-mongodb copied to clipboard

Makes SchemalessBehavior::beforeSave() compatible with ModelBehavior::be...

Open timstermatic opened this issue 11 years ago • 1 comments

PHP 5.4+ Strict gives the following error when creating a form linked to a Model:

"Declaration of SchemalessBehavior::beforeSave() should be compatible with ModelBehavior::beforeSave(Model $model, $options = Array) [APP/Plugin/Mongodb/Model/Behavior/SchemalessBehavior.php, line 34]"

Added the $options argument for compatibility with parent class.

timstermatic avatar Oct 17 '13 18:10 timstermatic

Coverage Status

Coverage increased (+0.04%) when pulling 5cdc0b044a3e90810f2d25b1ac5570c7cae99d2f on timstermatic:cake2.2 into f99add621009175593b2d4dbcb5627534fa5f4a4 on ichikaway:cake2.2.

coveralls avatar Oct 17 '13 18:10 coveralls