From 6590feef0db1e994a42ffdc3536bccbe2f737ee4 Mon Sep 17 00:00:00 2001 From: drlibra <13391053+drlibra@users.noreply.github.com> Date: Sun, 3 Jun 2018 18:30:53 +0500 Subject: [PATCH] Fixes #16192: `yii\db\Command::logQuery()` is now protected --- framework/CHANGELOG.md | 3 ++- framework/db/Command.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 5c7ee1f533..5e09c32683 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -28,11 +28,12 @@ Yii Framework 2 Change Log - Bug #16277: Fixed `yii\db\Query::from()` to respect `yii\db\ExpressionInterface` (noname007) - Bug #16280: Fixed `yii\base\Model::getActiveValidators()` to return correct validators for attribute on scenario (paweljankowiak06) - Enh #16191: Enhanced `yii\helpers\Inflector` to work correctly with UTF-8 (silverfire) -- Bug #16252: Fixed `yii\base\DynamicModel` for checking exist property (vuongxuongminh) +- Bug #16252: Fixed `yii\base\DynamicModel` for checking exist property (vuongxuongminh) - Bug: Fixed bad instanceof check in `yii\db\Schema::getTableMetadata()` (samdark) - Bug #16292: Fixed misconfigured CORS filter exception throwing. Now it throws `InvalidConfigException` in Debug mode (khvalov) - Bug #16301: Fixed `yii\web\User::setIdentity()` to clear access check cache while setting identity object to `null` (Izumi-kun) - Bug #16322: Fixed strings were not were not compared using timing attack resistant approach while CSRF token validation (samdark, Felix Wiedemann) +- Chg #16192: `yii\db\Command::logQuery()` is now protected (drlibra) 2.0.15.1 March 21, 2018 ----------------------- diff --git a/framework/db/Command.php b/framework/db/Command.php index 060fa10381..b2fed61100 100644 --- a/framework/db/Command.php +++ b/framework/db/Command.php @@ -1093,7 +1093,7 @@ class Command extends Component * @return array array of two elements, the first is boolean of whether profiling is enabled or not. * The second is the rawSql if it has been created. */ - private function logQuery($category) + protected function logQuery($category) { if ($this->db->enableLogging) { $rawSql = $this->getRawSql();