From cec3ac450e1e4dca8725104abbf9c8d8360c07fc Mon Sep 17 00:00:00 2001 From: eXeCUT Date: Mon, 10 Aug 2020 13:07:55 +0300 Subject: [PATCH] Fixed bug with new yii2-crud-fields --- crudFields/PageAddress.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crudFields/PageAddress.php b/crudFields/PageAddress.php index e432440..e826f01 100644 --- a/crudFields/PageAddress.php +++ b/crudFields/PageAddress.php @@ -6,13 +6,13 @@ use execut\crudFields\fields\Field; use execut\pages\crudFields\pageAddress\Adapter; -use yii\db\ActiveQuery; +use yii\db\ActiveQueryInterface; use yii\helpers\ArrayHelper; use yii\helpers\Html; class PageAddress extends Field { - protected function applyFieldScopes(ActiveQuery $query) + protected function applyFieldScopes(ActiveQueryInterface $query) { $address = $this->getValue(); if (!empty($address)) {