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 * } * ```