Skip to content

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

Open
timstermatic wants to merge 1 commit into
ichikaway:cake2.2from
timstermatic:cake2.2
Open

Makes SchemalessBehavior::beforeSave() compatible with ModelBehavior::be...#88
timstermatic wants to merge 1 commit into
ichikaway:cake2.2from
timstermatic:cake2.2

Conversation

@timstermatic
Copy link
Copy Markdown

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.

@coveralls
Copy link
Copy Markdown

Coverage Status

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants