From 68b473679a5f1c85f50ac2aa608a9a8e82b370ee Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Fri, 18 Nov 2022 20:21:58 +0400 Subject: [PATCH] release version 2.0.47 --- framework/BaseYii.php | 2 +- framework/CHANGELOG.md | 14 +++++++------- framework/base/Controller.php | 2 +- framework/mutex/MysqlMutex.php | 1 + framework/validators/TrimValidator.php | 1 + framework/widgets/MaskedInput.php | 1 + 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/framework/BaseYii.php b/framework/BaseYii.php index b002ad49c39..582c102610b 100644 --- a/framework/BaseYii.php +++ b/framework/BaseYii.php @@ -93,7 +93,7 @@ class BaseYii */ public static function getVersion() { - return '2.0.47-dev'; + return '2.0.47'; } /** diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 55308a189a9..cea445194d0 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -1,7 +1,7 @@ Yii Framework 2 Change Log ========================== -2.0.47 under development +2.0.47 November 18, 2022 ------------------------ - Bug #12636: Fix CompareValidator successful state when compareAttribute has an error (manchenkoff) @@ -9,19 +9,19 @@ Yii Framework 2 Change Log - Bug #15500: Fix saving empty records to MySQL (manchenkoff) - Bug #15557: Fix empty fields exclusion in safe attributes of `yii\base\Model` (manchenkoff) - Bug #16658: Fix file readability check on publishing assets by `yii\web\AssetManager` (manchenkoff) +- Bug #19316: Fix MysqlMutex with same connection but difference database (kamarton) +- Bug #19507: Fix eager loading of nested one-to-many relations (spo0okie) - Bug #19508: Fix wrong selection for boolean attributes in GridView (alnidok) - Bug #19517: Fix regression in `CompositeAuth::authenticate()` introduced in #19418 (WinterSilence) +- Bug #19520: Fix for TIMESTAMP & ROWVERSION columns in MSSQL insert query (darkdef) - Bug #19530: Fix specifying the field id for `yii\widgets\ActiveField` (kv4nt) +- Bug #19534: Fix `yii\helpers\BaseHtml::renderSelectOptions()` to properly render boolean selection (bizley) - Bug #19537: Fix default expression detection for MariaDB `date` and `time` columns (bizley) -- Bug #19589: Fix Error reporting in to the `BaseArrayHelper::getValue()` (lav45) -- Bug #19316: Fix MysqlMutex with same connection but difference database (kamarton) -- Bug #19507: Fix eager loading of nested one-to-many relations (spo0okie) - Bug #19546: Reverted #19309 (bizley) -- Bug #19670: Fix Error null check PHP 8.1 `yii\rbac\DbManager` (samuelexyz) -- Bug #19520: Fix for TIMESTAMP & ROWVERSION columns in MSSQL insert query (darkdef) - Bug #19581: Fix regression in `CompositeAuth` introduced in #19418 (SamMousa, WinterSilence, samdark) +- Bug #19589: Fix Error reporting in to the `BaseArrayHelper::getValue()` (lav45) +- Bug #19670: Fix Error null check PHP 8.1 `yii\rbac\DbManager` (samuelexyz) - Chg #17811: Do not reset `retryHandler` when `yii\db\Command::reset()` called (erickskrauch) -- Bug #19534: Fix `yii\helpers\BaseHtml::renderSelectOptions()` to properly render boolean selection (bizley) - Chg #19354: Reuse `Validator::getAttributeNames()` in `AttributeTypecastBehavior::detectAttributeTypes()` (WinterSilence) diff --git a/framework/base/Controller.php b/framework/base/Controller.php index 3e609be2e9c..2205712fb28 100644 --- a/framework/base/Controller.php +++ b/framework/base/Controller.php @@ -19,7 +19,7 @@ * @property-read Module[] $modules All ancestor modules that this controller is located within. * @property-read string $route The route (module ID, controller ID and action ID) of the current request. * @property-read string $uniqueId The controller ID that is prefixed with the module ID (if any). - * @property View $view The view object that can be used to render views or view files. + * @property View|\yii\web\View $view The view object that can be used to render views or view files. * @property string $viewPath The directory containing the view files for this controller. * * @author Qiang Xue diff --git a/framework/mutex/MysqlMutex.php b/framework/mutex/MysqlMutex.php index 0880b2fa1ac..cbbd49dad3f 100644 --- a/framework/mutex/MysqlMutex.php +++ b/framework/mutex/MysqlMutex.php @@ -42,6 +42,7 @@ class MysqlMutex extends DbMutex */ public $keyPrefix = null; + /** * Initializes MySQL specific mutex component implementation. * @throws InvalidConfigException if [[db]] is not MySQL connection. diff --git a/framework/validators/TrimValidator.php b/framework/validators/TrimValidator.php index 89a2eb86b97..022369810b5 100644 --- a/framework/validators/TrimValidator.php +++ b/framework/validators/TrimValidator.php @@ -31,6 +31,7 @@ class TrimValidator extends Validator */ public $skipOnEmpty = false; + /** * @inheritDoc */ diff --git a/framework/widgets/MaskedInput.php b/framework/widgets/MaskedInput.php index 0ed87e131f5..7513169e9b0 100644 --- a/framework/widgets/MaskedInput.php +++ b/framework/widgets/MaskedInput.php @@ -123,6 +123,7 @@ class MaskedInput extends InputWidget 'canClearPosition' ]; + /** * Initializes the widget. *