Skip to content

Commit 4e2045c

Browse files
committed
release version 2.0.41
1 parent 1ace064 commit 4e2045c

19 files changed

+38
-38
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.41-dev';
96+
return '2.0.41';
9797
}
9898

9999
/**

Diff for: framework/CHANGELOG.md

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

4-
2.0.41 under development
5-
------------------------
4+
2.0.41 March 03, 2021
5+
---------------------
66

7-
- Enh #18499: When using `yii\db\Query::all()` and `yii\db\Query::$indexBy`, the `yii\db\Query::$indexBy` is auto inserted into `yii\db\Query::$select` - the same as in `yii\db\Query::column()` (OndrejVasicek, samdark, bizley)
8-
- Enh #18483: Add `yii\log\Logger::$dbEventNames` that allows specifying event names used to get statistical results (profiling) of DB queries (atiline)
9-
- Enh #18455: Add ability to use separate attributes for data model and filter model of `yii\grid\GridView` in `yii\grid\DataColumn` (PowerGamer1)
10-
- Enh #18447: Do not use `getLastInsertID()` to get PK from insert query to lower collision probability for concurrent inserts (darkdef)
7+
- Bug #8750: Fix MySQL support when running in `ANSI`/`ANSI_QUOTES` modes (brandonkelly)
8+
- Bug #9718: Fix user staying authorized despite authKey change (kidol, Charlie Jack, Kunal Mhaske, samdark)
119
- Bug #18448: Fix issues in queries and tests for older MSSQL versions (darkdef)
12-
- Enh #18460: `compareValue` in `CompareValidator` can now take a closure returning a value (mmonem)
10+
- Bug #18450: Allow empty string to be passed as a nullable typed argument to a controller's action (dicrtarasov, bizley)
1311
- Bug #18464: Fix bug with processing fallback messages when translation language is set to `null` (bizley)
14-
- Enh #18457: Add `EVENT_RESET` and `EVENT_FINISH` events to `yii\db\BatchQueryResult` (brandonkelly)
1512
- Bug #18472: Fix initializing `db` component configuration in `yii\data\ActiveDataProvider` (bizley)
16-
- Bug #18479: Fix invalid argument type for `preg_split()` in `\yii\console\Controller` (gazooz)
1713
- Bug #18477: Fix detecting availability of Xdebug's stack trace in `yii\base\ErrorException` (bizley)
14+
- Bug #18479: Fix invalid argument type for `preg_split()` in `\yii\console\Controller` (gazooz)
1815
- Bug #18480: Transactions are not committed using the dblib driver (bbrunekreeft)
19-
- Enh #18493: Faster request parsing for REST UrlRule with prefix handling (bizley)
20-
- Enh #18487: Allow creating URLs for non-GET-verb rules (bizley)
21-
- Bug #8750: Fix MySQL support when running in `ANSI`/`ANSI_QUOTES` modes (brandonkelly)
2216
- Bug #18505: Fix `yii\helpers\ArrayHelper::getValue()` for ArrayAccess objects with explicitly defined properties (samdark)
23-
- Bug #9718: Fix user staying authorized despite authKey change (kidol, Charlie Jack, Kunal Mhaske, samdark)
2417
- Bug #18508: Fix Postgres SQL query for load table indexes with correct column order (insolita)
25-
- Enh #18518: Add support for ngrok’s `X-Original-Host` header (brandonkelly)
2618
- Bug #18529: Fix asset files path with `appendTimestamp` option for non-root-relative base URLs (bizley)
27-
- Bug #18450: Allow empty string to be passed as a nullable typed argument to a controller's action (dicrtarasov, bizley)
2819
- Bug #18535: Set Cookie SameSite to Lax by default (samdark)
2920
- Bug #18539: Fix "driver does not support quoting" when using the driver pdo_odbc (xpohoc69)
21+
- Enh #18447: Do not use `getLastInsertID()` to get PK from insert query to lower collision probability for concurrent inserts (darkdef)
22+
- Enh #18455: Add ability to use separate attributes for data model and filter model of `yii\grid\GridView` in `yii\grid\DataColumn` (PowerGamer1)
23+
- Enh #18457: Add `EVENT_RESET` and `EVENT_FINISH` events to `yii\db\BatchQueryResult` (brandonkelly)
24+
- Enh #18460: `compareValue` in `CompareValidator` can now take a closure returning a value (mmonem)
25+
- Enh #18483: Add `yii\log\Logger::$dbEventNames` that allows specifying event names used to get statistical results (profiling) of DB queries (atiline)
26+
- Enh #18487: Allow creating URLs for non-GET-verb rules (bizley)
27+
- Enh #18493: Faster request parsing for REST UrlRule with prefix handling (bizley)
28+
- Enh #18499: When using `yii\db\Query::all()` and `yii\db\Query::$indexBy`, the `yii\db\Query::$indexBy` is auto inserted into `yii\db\Query::$select` - the same as in `yii\db\Query::column()` (OndrejVasicek, samdark, bizley)
29+
- Enh #18518: Add support for ngrok’s `X-Original-Host` header (brandonkelly)
3030

3131

3232
2.0.40 December 23, 2020

Diff for: framework/base/Module.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @property array $modules The modules (indexed by their IDs).
3434
* @property-read string $uniqueId The unique ID of the module. This property is read-only.
3535
* @property string $version The version of this module. Note that the type of this property differs in getter
36-
* and setter. See [[getVersion()]] and [[setVersion()]] for details.
36+
* and setter. See [[getVersion()]] and [[setVersion()]] for details.
3737
* @property string $viewPath The root directory of view files. Defaults to "[[basePath]]/views".
3838
*
3939
* @author Qiang Xue <[email protected]>

Diff for: framework/base/Widget.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
* For more details and usage information on Widget, see the [guide article on widgets](guide:structure-widgets).
1717
*
1818
* @property string|null $id ID of the widget. Note that the type of this property differs in getter and
19-
* setter. See [[getId()]] and [[setId()]] for details.
19+
* setter. See [[getId()]] and [[setId()]] for details.
2020
* @property \yii\web\View $view The view object that can be used to render views or view files. Note that the
21-
* type of this property differs in getter and setter. See [[getView()]] and [[setView()]] for details.
21+
* type of this property differs in getter and setter. See [[getView()]] and [[setView()]] for details.
2222
* @property-read string $viewPath The directory containing the view files for this widget. This property is
2323
* read-only.
2424
*

Diff for: framework/caching/MemCache.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
* @property-read \Memcache|\Memcached $memcache The memcache (or memcached) object used by this cache
5959
* component. This property is read-only.
6060
* @property MemCacheServer[] $servers List of memcache server configurations. Note that the type of this
61-
* property differs in getter and setter. See [[getServers()]] and [[setServers()]] for details.
61+
* property differs in getter and setter. See [[getServers()]] and [[setServers()]] for details.
6262
*
6363
* @author Qiang Xue <[email protected]>
6464
* @since 2.0

Diff for: framework/classes.php

+1
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@
174174
'yii\db\cubrid\Schema' => YII2_PATH . '/db/cubrid/Schema.php',
175175
'yii\db\cubrid\conditions\LikeConditionBuilder' => YII2_PATH . '/db/cubrid/conditions/LikeConditionBuilder.php',
176176
'yii\db\mssql\ColumnSchema' => YII2_PATH . '/db/mssql/ColumnSchema.php',
177+
'yii\db\mssql\DBLibPDO' => YII2_PATH . '/db/mssql/DBLibPDO.php',
177178
'yii\db\mssql\PDO' => YII2_PATH . '/db/mssql/PDO.php',
178179
'yii\db\mssql\QueryBuilder' => YII2_PATH . '/db/mssql/QueryBuilder.php',
179180
'yii\db\mssql\Schema' => YII2_PATH . '/db/mssql/Schema.php',

Diff for: framework/console/controllers/AssetController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* check [[jsCompressor]] and [[cssCompressor]] for more details.
4040
*
4141
* @property \yii\web\AssetManager $assetManager Asset manager instance. Note that the type of this property
42-
* differs in getter and setter. See [[getAssetManager()]] and [[setAssetManager()]] for details.
42+
* differs in getter and setter. See [[getAssetManager()]] and [[setAssetManager()]] for details.
4343
*
4444
* @author Qiang Xue <[email protected]>
4545
* @author Paul Klimov <[email protected]>

Diff for: framework/data/BaseDataProvider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
* uniquely identified by the corresponding key value in this array.
2222
* @property array $models The list of data models in the current page.
2323
* @property Pagination|false $pagination The pagination object. If this is false, it means the pagination is
24-
* disabled. Note that the type of this property differs in getter and setter. See [[getPagination()]] and
24+
* disabled. Note that the type of this property differs in getter and setter. See [[getPagination()]] and
2525
* [[setPagination()]] for details.
2626
* @property Sort|bool $sort The sorting object. If this is false, it means the sorting is disabled. Note that
27-
* the type of this property differs in getter and setter. See [[getSort()]] and [[setSort()]] for details.
27+
* the type of this property differs in getter and setter. See [[getSort()]] and [[setSort()]] for details.
2828
* @property int $totalCount Total number of possible data models.
2929
*
3030
* @author Qiang Xue <[email protected]>

Diff for: framework/data/DataFilter.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,12 @@
113113
* @see ActiveDataFilter
114114
*
115115
* @property array $errorMessages Error messages in format `[errorKey => message]`. Note that the type of this
116-
* property differs in getter and setter. See [[getErrorMessages()]] and [[setErrorMessages()]] for details.
116+
* property differs in getter and setter. See [[getErrorMessages()]] and [[setErrorMessages()]] for details.
117117
* @property mixed $filter Raw filter value.
118118
* @property array $searchAttributeTypes Search attribute type map. Note that the type of this property
119-
* differs in getter and setter. See [[getSearchAttributeTypes()]] and [[setSearchAttributeTypes()]] for
120-
* details.
119+
* differs in getter and setter. See [[getSearchAttributeTypes()]] and [[setSearchAttributeTypes()]] for details.
121120
* @property Model $searchModel Model instance. Note that the type of this property differs in getter and
122-
* setter. See [[getSearchModel()]] and [[setSearchModel()]] for details.
121+
* setter. See [[getSearchModel()]] and [[setSearchModel()]] for details.
123122
*
124123
* @author Paul Klimov <[email protected]>
125124
* @since 2.0.13

Diff for: framework/data/Sort.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
*
7171
* @property array $attributeOrders Sort directions indexed by attribute names. Sort direction can be either
7272
* `SORT_ASC` for ascending order or `SORT_DESC` for descending order. Note that the type of this property
73-
* differs in getter and setter. See [[getAttributeOrders()]] and [[setAttributeOrders()]] for details.
73+
* differs in getter and setter. See [[getAttributeOrders()]] and [[setAttributeOrders()]] for details.
7474
* @property-read array $orders The columns (keys) and their corresponding sort directions (values). This can
7575
* be passed to [[\yii\db\Query::orderBy()]] to construct a DB query. This property is read-only.
7676
*

Diff for: framework/db/BaseActiveRecord.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* read-only.
2828
* @property bool $isNewRecord Whether the record is new and should be inserted when calling [[save()]].
2929
* @property array $oldAttributes The old attribute values (name-value pairs). Note that the type of this
30-
* property differs in getter and setter. See [[getOldAttributes()]] and [[setOldAttributes()]] for details.
30+
* property differs in getter and setter. See [[getOldAttributes()]] and [[setOldAttributes()]] for details.
3131
* @property-read mixed $oldPrimaryKey The old primary key value. An array (column name => column value) is
3232
* returned if the primary key is composite. A string is returned otherwise (null will be returned if the key
3333
* value is null). This property is read-only.

Diff for: framework/db/Connection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
* @property-read PDO $masterPdo The PDO instance for the currently active master connection. This property is
120120
* read-only.
121121
* @property QueryBuilder $queryBuilder The query builder for the current DB connection. Note that the type of
122-
* this property differs in getter and setter. See [[getQueryBuilder()]] and [[setQueryBuilder()]] for details.
122+
* this property differs in getter and setter. See [[getQueryBuilder()]] and [[setQueryBuilder()]] for details.
123123
* @property-read Schema $schema The schema information for the database opened by this connection. This
124124
* property is read-only.
125125
* @property-read string $serverVersion Server version as a string. This property is read-only.

Diff for: framework/i18n/I18N.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
* @property MessageFormatter $messageFormatter The message formatter to be used to format message via ICU
2121
* message format. Note that the type of this property differs in getter and setter. See
22-
* [[getMessageFormatter()]] and [[setMessageFormatter()]] for details.
22+
* [[getMessageFormatter()]] and [[setMessageFormatter()]] for details.
2323
*
2424
* @author Qiang Xue <[email protected]>
2525
* @since 2.0

Diff for: framework/log/Dispatcher.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* @property int $flushInterval How many messages should be logged before they are sent to targets. This
5454
* method returns the value of [[Logger::flushInterval]].
5555
* @property Logger $logger The logger. If not set, [[\Yii::getLogger()]] will be used. Note that the type of
56-
* this property differs in getter and setter. See [[getLogger()]] and [[setLogger()]] for details.
56+
* this property differs in getter and setter. See [[getLogger()]] and [[setLogger()]] for details.
5757
* @property int $traceLevel How many application call stacks should be logged together with each message.
5858
* This method returns the value of [[Logger::traceLevel]]. Defaults to 0.
5959
*

Diff for: framework/log/Target.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
* may specify [[except]] to exclude messages of certain categories.
2828
*
2929
* @property bool $enabled Indicates whether this log target is enabled. Defaults to true. Note that the type
30-
* of this property differs in getter and setter. See [[getEnabled()]] and [[setEnabled()]] for details.
30+
* of this property differs in getter and setter. See [[getEnabled()]] and [[setEnabled()]] for details.
3131
* @property int $levels The message levels that this target is interested in. This is a bitmap of level
3232
* values. Defaults to 0, meaning all available levels. Note that the type of this property differs in getter and
33-
* setter. See [[getLevels()]] and [[setLevels()]] for details.
33+
* setter. See [[getLevels()]] and [[setLevels()]] for details.
3434
*
3535
* For more details and usage information on Target, see the [guide article on logging & targets](guide:runtime-logging).
3636
*

Diff for: framework/mail/BaseMailer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* For more details and usage information on BaseMailer, see the [guide article on mailing](guide:tutorial-mailing).
2424
*
2525
* @property View $view View instance. Note that the type of this property differs in getter and setter. See
26-
* [[getView()]] and [[setView()]] for details.
26+
* [[getView()]] and [[setView()]] for details.
2727
* @property string $viewPath The directory that contains the view files for composing mail messages Defaults
2828
* to '@app/mail'.
2929
*

Diff for: framework/rbac/BaseManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @property-read Role[] $defaultRoleInstances Default roles. The array is indexed by the role names. This
2121
* property is read-only.
2222
* @property string[] $defaultRoles Default roles. Note that the type of this property differs in getter and
23-
* setter. See [[getDefaultRoles()]] and [[setDefaultRoles()]] for details.
23+
* setter. See [[getDefaultRoles()]] and [[setDefaultRoles()]] for details.
2424
*
2525
* @author Qiang Xue <[email protected]>
2626
* @since 2.0

Diff for: framework/web/AssetManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* For more details and usage information on AssetManager, see the [guide article on assets](guide:structure-assets).
3535
*
3636
* @property AssetConverterInterface $converter The asset converter. Note that the type of this property
37-
* differs in getter and setter. See [[getConverter()]] and [[setConverter()]] for details.
37+
* differs in getter and setter. See [[getConverter()]] and [[setConverter()]] for details.
3838
*
3939
* @author Qiang Xue <[email protected]>
4040
* @since 2.0

Diff for: framework/web/User.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* user. `null` is returned if the user is not logged in (not authenticated).
5454
* @property-read bool $isGuest Whether the current user is a guest. This property is read-only.
5555
* @property string $returnUrl The URL that the user should be redirected to after login. Note that the type
56-
* of this property differs in getter and setter. See [[getReturnUrl()]] and [[setReturnUrl()]] for details.
56+
* of this property differs in getter and setter. See [[getReturnUrl()]] and [[setReturnUrl()]] for details.
5757
*
5858
* @author Qiang Xue <[email protected]>
5959
* @since 2.0

0 commit comments

Comments
 (0)