mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 12:02:41 +00:00
Update afterFind() callback signature to be PHP5.4+ compliant.
This commit is contained in:
parent
994a5b00b6
commit
0a52061d86
4 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue