From 0f7248c7a2ffcf17d7f2f06d41d009a93be10930 Mon Sep 17 00:00:00 2001 From: Bizley Date: Tue, 29 Aug 2023 15:36:17 +0200 Subject: [PATCH] release version 2.0.49 --- framework/BaseYii.php | 2 +- framework/CHANGELOG.md | 22 +++++++++++----------- framework/db/BaseActiveRecord.php | 2 +- framework/db/Migration.php | 6 +++--- framework/helpers/mimeExtensions.php | 2 ++ framework/helpers/mimeTypes.php | 2 ++ 6 files changed, 20 insertions(+), 16 deletions(-) diff --git a/framework/BaseYii.php b/framework/BaseYii.php index dfa5419cb0a..14fd3477f6f 100644 --- a/framework/BaseYii.php +++ b/framework/BaseYii.php @@ -93,7 +93,7 @@ class BaseYii */ public static function getVersion() { - return '2.0.49-dev'; + return '2.0.49'; } /** diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 362437e2731..c02e5cf5d83 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -1,24 +1,24 @@ Yii Framework 2 Change Log ========================== -2.0.49 under development ------------------------- +2.0.49 August 29, 2023 +---------------------- -- Bug #19911: Resolved inconsistency in `ActiveRecord::getAttributeLabel()` with regard of overriding in primary model labels for attributes of related model in favor of allowing such overriding for all levels of relation nesting (PowerGamer1) -- Bug #19872: Fixed the definition of dirty attributes in AR properties for a non-associative array in case of changing the order of elements (eegusakov) -- Bug #19899: Fixed `GridView` in some cases calling `Model::generateAttributeLabel()` to generate label values that are never used (PowerGamer1) - Bug #9899: Fix caching a MSSQL query with BLOB data type (terabytesoftw) - Bug #16208: Fix `yii\log\FileTarget` to not export empty messages (terabytesoftw) -- Bug #19857: Fix AttributeTypecastBehavior::resetOldAttributes() causes "class has no attribute named" InvalidArgumentException (uaoleg) - Bug #18859: Fix `yii\web\Controller::bindInjectedParams()` to not throw error when argument of `ReflectionUnionType` type is passed (bizley) -- Enh #19841: Allow jQuery 3.7 to be installed (wouter90) -- Enh #19853: Added support for default value for `\yii\helpers\Console::select()` (rhertogh) +- Bug #19857: Fix AttributeTypecastBehavior::resetOldAttributes() causes "class has no attribute named" InvalidArgumentException (uaoleg) - Bug #19868: Added whitespace sanitation for tests, due to updates in ICU 72 (schmunk42) -- Enh #19884: Added support Enums in Query Builder (sk1t0n) -- Bug #19908: Fix associative array cell content rendering in Table widget (rhertogh) +- Bug #19872: Fixed the definition of dirty attributes in AR properties for a non-associative array in case of changing the order of elements (eegusakov) +- Bug #19899: Fixed `GridView` in some cases calling `Model::generateAttributeLabel()` to generate label values that are never used (PowerGamer1) - Bug #19906: Fixed multiline strings in the `\yii\console\widgets\Table` widget (rhertogh) -- Bug #19924: Fix `yii\i18n\Formatter` to not throw error `Unknown named parameter` under PHP 8 (arollmann) +- Bug #19908: Fix associative array cell content rendering in Table widget (rhertogh) +- Bug #19911: Resolved inconsistency in `ActiveRecord::getAttributeLabel()` with regard of overriding in primary model labels for attributes of related model in favor of allowing such overriding for all levels of relation nesting (PowerGamer1) - Bug #19914: Fixed `ArrayHelper::keyExists()` and `::remove()` functions when the key is a float and the value is `null` (rhertogh) +- Bug #19924: Fix `yii\i18n\Formatter` to not throw error `Unknown named parameter` under PHP 8 (arollmann) +- Enh #19841: Allow jQuery 3.7 to be installed (wouter90) +- Enh #19853: Added support for default value for `\yii\helpers\Console::select()` (rhertogh) +- Enh #19884: Added support Enums in Query Builder (sk1t0n) - Enh #19920: Broadened the accepted type of `Cookie::$expire` from `int` to `int|string|\DateTimeInterface|null` (rhertogh) diff --git a/framework/db/BaseActiveRecord.php b/framework/db/BaseActiveRecord.php index 9b00cb430f8..61cf3774094 100644 --- a/framework/db/BaseActiveRecord.php +++ b/framework/db/BaseActiveRecord.php @@ -1616,7 +1616,7 @@ public static function isPrimaryKey($keys) * - the label for 'relatedModel1.relatedModel2.attr' defined in [[attributeLabels()]] of this model; * - the label for 'relatedModel2.attr' defined in related model represented by relation 'relatedModel1' of this model; * - the label for 'attr' defined in related model represented by relation 'relatedModel2' of relation 'relatedModel1'. - * If no label definition was found then the value of $this->generateAttributeLabel('relatedModel1.relatedModel2.attr') will be returned. + * If no label definition was found then the value of $this->generateAttributeLabel('relatedModel1.relatedModel2.attr') will be returned. * @param string $attribute the attribute name * @return string the attribute label * @see attributeLabels() diff --git a/framework/db/Migration.php b/framework/db/Migration.php index 975898cd53f..c4bf99981af 100644 --- a/framework/db/Migration.php +++ b/framework/db/Migration.php @@ -311,7 +311,7 @@ public function delete($table, $condition = '', $params = []) * * If a column is specified with definition only (e.g. 'PRIMARY KEY (name, type)'), it will be directly * put into the generated SQL. - * + * * Example usage: * ```php * class m200000_000000_create_table_fruits extends \yii\db\Migration @@ -319,10 +319,10 @@ public function delete($table, $condition = '', $params = []) * public function safeUp() * { * $this->createTable('{{%fruits}}', [ - * // ... + * // ... * 'column_name double precision null default null', * ``` - + * * * @param string $table the name of the table to be created. The name will be properly quoted by the method. * @param array $columns the columns (name => definition) in the new table. diff --git a/framework/helpers/mimeExtensions.php b/framework/helpers/mimeExtensions.php index dfe5ee5ae47..946d61cd0c5 100644 --- a/framework/helpers/mimeExtensions.php +++ b/framework/helpers/mimeExtensions.php @@ -299,6 +299,7 @@ 'application/vnd.fuzzysheet' => 'fzs', 'application/vnd.genomatix.tuxedo' => 'txd', 'application/vnd.geogebra.file' => 'ggb', + 'application/vnd.geogebra.slides' => 'ggs', 'application/vnd.geogebra.tool' => 'ggt', 'application/vnd.geometry-explorer' => [ 'gex', @@ -655,6 +656,7 @@ ], 'application/vnd.zzazz.deck+xml' => 'zaz', 'application/voicexml+xml' => 'vxml', + 'application/wasm' => 'wasm', 'application/widget' => 'wgt', 'application/winhlp' => 'hlp', 'application/wsdl+xml' => 'wsdl', diff --git a/framework/helpers/mimeTypes.php b/framework/helpers/mimeTypes.php index f4430605a38..707bdc7717e 100644 --- a/framework/helpers/mimeTypes.php +++ b/framework/helpers/mimeTypes.php @@ -282,6 +282,7 @@ 'geo' => 'application/vnd.dynageo', 'gex' => 'application/vnd.geometry-explorer', 'ggb' => 'application/vnd.geogebra.file', + 'ggs' => 'application/vnd.geogebra.slides', 'ggt' => 'application/vnd.geogebra.tool', 'ghf' => 'application/vnd.groove-help', 'gif' => 'image/gif', @@ -887,6 +888,7 @@ 'vxml' => 'application/voicexml+xml', 'w3d' => 'application/x-director', 'wad' => 'application/x-doom', + 'wasm' => 'application/wasm', 'wav' => 'audio/x-wav', 'wax' => 'audio/x-ms-wax', 'wbmp' => 'image/vnd.wap.wbmp',