Skip to content

Commit 0f7248c

Browse files
author
Bizley
committed
release version 2.0.49
1 parent 4ffb58e commit 0f7248c

File tree

6 files changed

+20
-16
lines changed

6 files changed

+20
-16
lines changed

Diff for: framework/BaseYii.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class BaseYii
9393
*/
9494
public static function getVersion()
9595
{
96-
return '2.0.49-dev';
96+
return '2.0.49';
9797
}
9898

9999
/**

Diff for: framework/CHANGELOG.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
Yii Framework 2 Change Log
22
==========================
33

4-
2.0.49 under development
5-
------------------------
4+
2.0.49 August 29, 2023
5+
----------------------
66

7-
- 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)
8-
- 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)
9-
- Bug #19899: Fixed `GridView` in some cases calling `Model::generateAttributeLabel()` to generate label values that are never used (PowerGamer1)
107
- Bug #9899: Fix caching a MSSQL query with BLOB data type (terabytesoftw)
118
- Bug #16208: Fix `yii\log\FileTarget` to not export empty messages (terabytesoftw)
12-
- Bug #19857: Fix AttributeTypecastBehavior::resetOldAttributes() causes "class has no attribute named" InvalidArgumentException (uaoleg)
139
- Bug #18859: Fix `yii\web\Controller::bindInjectedParams()` to not throw error when argument of `ReflectionUnionType` type is passed (bizley)
14-
- Enh #19841: Allow jQuery 3.7 to be installed (wouter90)
15-
- Enh #19853: Added support for default value for `\yii\helpers\Console::select()` (rhertogh)
10+
- Bug #19857: Fix AttributeTypecastBehavior::resetOldAttributes() causes "class has no attribute named" InvalidArgumentException (uaoleg)
1611
- Bug #19868: Added whitespace sanitation for tests, due to updates in ICU 72 (schmunk42)
17-
- Enh #19884: Added support Enums in Query Builder (sk1t0n)
18-
- Bug #19908: Fix associative array cell content rendering in Table widget (rhertogh)
12+
- 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)
13+
- Bug #19899: Fixed `GridView` in some cases calling `Model::generateAttributeLabel()` to generate label values that are never used (PowerGamer1)
1914
- Bug #19906: Fixed multiline strings in the `\yii\console\widgets\Table` widget (rhertogh)
20-
- Bug #19924: Fix `yii\i18n\Formatter` to not throw error `Unknown named parameter` under PHP 8 (arollmann)
15+
- Bug #19908: Fix associative array cell content rendering in Table widget (rhertogh)
16+
- 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)
2117
- Bug #19914: Fixed `ArrayHelper::keyExists()` and `::remove()` functions when the key is a float and the value is `null` (rhertogh)
18+
- Bug #19924: Fix `yii\i18n\Formatter` to not throw error `Unknown named parameter` under PHP 8 (arollmann)
19+
- Enh #19841: Allow jQuery 3.7 to be installed (wouter90)
20+
- Enh #19853: Added support for default value for `\yii\helpers\Console::select()` (rhertogh)
21+
- Enh #19884: Added support Enums in Query Builder (sk1t0n)
2222
- Enh #19920: Broadened the accepted type of `Cookie::$expire` from `int` to `int|string|\DateTimeInterface|null` (rhertogh)
2323

2424

Diff for: framework/db/BaseActiveRecord.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,7 @@ public static function isPrimaryKey($keys)
16161616
* - the label for 'relatedModel1.relatedModel2.attr' defined in [[attributeLabels()]] of this model;
16171617
* - the label for 'relatedModel2.attr' defined in related model represented by relation 'relatedModel1' of this model;
16181618
* - the label for 'attr' defined in related model represented by relation 'relatedModel2' of relation 'relatedModel1'.
1619-
* If no label definition was found then the value of $this->generateAttributeLabel('relatedModel1.relatedModel2.attr') will be returned.
1619+
* If no label definition was found then the value of $this->generateAttributeLabel('relatedModel1.relatedModel2.attr') will be returned.
16201620
* @param string $attribute the attribute name
16211621
* @return string the attribute label
16221622
* @see attributeLabels()

Diff for: framework/db/Migration.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -311,18 +311,18 @@ public function delete($table, $condition = '', $params = [])
311311
*
312312
* If a column is specified with definition only (e.g. 'PRIMARY KEY (name, type)'), it will be directly
313313
* put into the generated SQL.
314-
*
314+
*
315315
* Example usage:
316316
* ```php
317317
* class m200000_000000_create_table_fruits extends \yii\db\Migration
318318
* {
319319
* public function safeUp()
320320
* {
321321
* $this->createTable('{{%fruits}}', [
322-
* // ...
322+
* // ...
323323
* 'column_name double precision null default null',
324324
* ```
325-
325+
*
326326
*
327327
* @param string $table the name of the table to be created. The name will be properly quoted by the method.
328328
* @param array $columns the columns (name => definition) in the new table.

Diff for: framework/helpers/mimeExtensions.php

+2
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@
299299
'application/vnd.fuzzysheet' => 'fzs',
300300
'application/vnd.genomatix.tuxedo' => 'txd',
301301
'application/vnd.geogebra.file' => 'ggb',
302+
'application/vnd.geogebra.slides' => 'ggs',
302303
'application/vnd.geogebra.tool' => 'ggt',
303304
'application/vnd.geometry-explorer' => [
304305
'gex',
@@ -655,6 +656,7 @@
655656
],
656657
'application/vnd.zzazz.deck+xml' => 'zaz',
657658
'application/voicexml+xml' => 'vxml',
659+
'application/wasm' => 'wasm',
658660
'application/widget' => 'wgt',
659661
'application/winhlp' => 'hlp',
660662
'application/wsdl+xml' => 'wsdl',

Diff for: framework/helpers/mimeTypes.php

+2
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@
282282
'geo' => 'application/vnd.dynageo',
283283
'gex' => 'application/vnd.geometry-explorer',
284284
'ggb' => 'application/vnd.geogebra.file',
285+
'ggs' => 'application/vnd.geogebra.slides',
285286
'ggt' => 'application/vnd.geogebra.tool',
286287
'ghf' => 'application/vnd.groove-help',
287288
'gif' => 'image/gif',
@@ -887,6 +888,7 @@
887888
'vxml' => 'application/voicexml+xml',
888889
'w3d' => 'application/x-director',
889890
'wad' => 'application/x-doom',
891+
'wasm' => 'application/wasm',
890892
'wav' => 'audio/x-wav',
891893
'wax' => 'audio/x-ms-wax',
892894
'wbmp' => 'image/vnd.wap.wbmp',

0 commit comments

Comments
 (0)