From 9012aa66bf5dc59472d696b414ccae2e05678f0e Mon Sep 17 00:00:00 2001 From: Sebastian Chojniak Date: Wed, 29 Jul 2015 12:42:56 +0200 Subject: [PATCH] Fixed documentation according to Chg #4911 --- framework/base/Arrayable.php | 2 +- framework/base/Model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/base/Arrayable.php b/framework/base/Arrayable.php index 8079b0c66c..92572a0c2f 100644 --- a/framework/base/Arrayable.php +++ b/framework/base/Arrayable.php @@ -34,7 +34,7 @@ interface Arrayable * returning the corresponding field value. The signature of the callable should be: * * ```php - * function ($field, $model) { + * function ($model, $field) { * // return field value * } * ``` diff --git a/framework/base/Model.php b/framework/base/Model.php index c497564c57..3b8ed61136 100644 --- a/framework/base/Model.php +++ b/framework/base/Model.php @@ -885,7 +885,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess, Arrayab * returning the corresponding field value. The signature of the callable should be: * * ```php - * function ($field, $model) { + * function ($model, $field) { * // return field value * } * ```