Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: cake2.2
Choose a base branch
from

Conversation

timstermatic
Copy link

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

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