From 8e0a987a38a0b715593be9b05451b3a880747a1e Mon Sep 17 00:00:00 2001 From: Wei Lin Date: Thu, 2 May 2019 17:28:54 +1000 Subject: [PATCH] Update Paginator.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This Query class doesn't seem to be used in this file, and is causing this weird intermittent error: "PHP Compile Error – yii\base\ErrorException, Cannot use yii\db\Query as Query because the name is already in use." Error happens when using {% paginate %} in Twig template. --- src/db/Paginator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/Paginator.php b/src/db/Paginator.php index bc2641b9b38..6dcb3c08146 100644 --- a/src/db/Paginator.php +++ b/src/db/Paginator.php @@ -10,7 +10,7 @@ use craft\helpers\ArrayHelper; use yii\base\BaseObject; use yii\db\Connection as YiiConnection; -use yii\db\Query; +// use yii\db\Query; use yii\db\QueryInterface; use yii\di\Instance;