Fixes #3240: Added support for assigning an anonymous function to `yii\widgets\ActiveForm::fieldConfig`