Update afterFind() callback signature to be PHP5.4+ compliant.

This commit is contained in:
Ber Clausen 2013-09-10 09:33:11 -03:00
parent 994a5b00b6
commit 0a52061d86
4 changed files with 6 additions and 6 deletions

View file

@ -84,7 +84,7 @@ class TestBehavior extends ModelBehavior {
* @param boolean $primary
* @return void
*/
public function afterFind(Model $model, $results, $primary) {
public function afterFind(Model $model, $results, $primary = false) {
$settings = $this->settings[$model->alias];
if (!isset($settings['afterFind']) || $settings['afterFind'] === 'off') {
return parent::afterFind($model, $results, $primary);