From 4e2045c040466b01148fdc433498c619711d51d9 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Thu, 4 Mar 2021 00:51:35 +0300 Subject: [PATCH] release version 2.0.41 --- framework/BaseYii.php | 2 +- framework/CHANGELOG.md | 40 +++++++++---------- framework/base/Module.php | 2 +- framework/base/Widget.php | 4 +- framework/caching/MemCache.php | 2 +- framework/classes.php | 1 + .../console/controllers/AssetController.php | 2 +- framework/data/BaseDataProvider.php | 4 +- framework/data/DataFilter.php | 7 ++-- framework/data/Sort.php | 2 +- framework/db/BaseActiveRecord.php | 2 +- framework/db/Connection.php | 2 +- framework/i18n/I18N.php | 2 +- framework/log/Dispatcher.php | 2 +- framework/log/Target.php | 4 +- framework/mail/BaseMailer.php | 2 +- framework/rbac/BaseManager.php | 2 +- framework/web/AssetManager.php | 2 +- framework/web/User.php | 2 +- 19 files changed, 43 insertions(+), 43 deletions(-) diff --git a/framework/BaseYii.php b/framework/BaseYii.php index f24f5eda7d..46808ff707 100644 --- a/framework/BaseYii.php +++ b/framework/BaseYii.php @@ -93,7 +93,7 @@ class BaseYii */ public static function getVersion() { - return '2.0.41-dev'; + return '2.0.41'; } /** diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 715aba1e57..c05c27b270 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -1,32 +1,32 @@ Yii Framework 2 Change Log ========================== -2.0.41 under development ------------------------- +2.0.41 March 03, 2021 +--------------------- -- 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) -- Enh #18483: Add `yii\log\Logger::$dbEventNames` that allows specifying event names used to get statistical results (profiling) of DB queries (atiline) -- Enh #18455: Add ability to use separate attributes for data model and filter model of `yii\grid\GridView` in `yii\grid\DataColumn` (PowerGamer1) -- Enh #18447: Do not use `getLastInsertID()` to get PK from insert query to lower collision probability for concurrent inserts (darkdef) -- Bug #18448: Fix issues in queries and tests for older MSSQL versions (darkdef) -- Enh #18460: `compareValue` in `CompareValidator` can now take a closure returning a value (mmonem) -- Bug #18464: Fix bug with processing fallback messages when translation language is set to `null` (bizley) -- Enh #18457: Add `EVENT_RESET` and `EVENT_FINISH` events to `yii\db\BatchQueryResult` (brandonkelly) -- Bug #18472: Fix initializing `db` component configuration in `yii\data\ActiveDataProvider` (bizley) -- Bug #18479: Fix invalid argument type for `preg_split()` in `\yii\console\Controller` (gazooz) -- Bug #18477: Fix detecting availability of Xdebug's stack trace in `yii\base\ErrorException` (bizley) -- Bug #18480: Transactions are not committed using the dblib driver (bbrunekreeft) -- Enh #18493: Faster request parsing for REST UrlRule with prefix handling (bizley) -- Enh #18487: Allow creating URLs for non-GET-verb rules (bizley) - Bug #8750: Fix MySQL support when running in `ANSI`/`ANSI_QUOTES` modes (brandonkelly) -- Bug #18505: Fix `yii\helpers\ArrayHelper::getValue()` for ArrayAccess objects with explicitly defined properties (samdark) - Bug #9718: Fix user staying authorized despite authKey change (kidol, Charlie Jack, Kunal Mhaske, samdark) -- Bug #18508: Fix Postgres SQL query for load table indexes with correct column order (insolita) -- Enh #18518: Add support for ngrok’s `X-Original-Host` header (brandonkelly) -- Bug #18529: Fix asset files path with `appendTimestamp` option for non-root-relative base URLs (bizley) +- Bug #18448: Fix issues in queries and tests for older MSSQL versions (darkdef) - Bug #18450: Allow empty string to be passed as a nullable typed argument to a controller's action (dicrtarasov, bizley) +- Bug #18464: Fix bug with processing fallback messages when translation language is set to `null` (bizley) +- Bug #18472: Fix initializing `db` component configuration in `yii\data\ActiveDataProvider` (bizley) +- Bug #18477: Fix detecting availability of Xdebug's stack trace in `yii\base\ErrorException` (bizley) +- Bug #18479: Fix invalid argument type for `preg_split()` in `\yii\console\Controller` (gazooz) +- Bug #18480: Transactions are not committed using the dblib driver (bbrunekreeft) +- Bug #18505: Fix `yii\helpers\ArrayHelper::getValue()` for ArrayAccess objects with explicitly defined properties (samdark) +- Bug #18508: Fix Postgres SQL query for load table indexes with correct column order (insolita) +- Bug #18529: Fix asset files path with `appendTimestamp` option for non-root-relative base URLs (bizley) - Bug #18535: Set Cookie SameSite to Lax by default (samdark) - Bug #18539: Fix "driver does not support quoting" when using the driver pdo_odbc (xpohoc69) +- Enh #18447: Do not use `getLastInsertID()` to get PK from insert query to lower collision probability for concurrent inserts (darkdef) +- Enh #18455: Add ability to use separate attributes for data model and filter model of `yii\grid\GridView` in `yii\grid\DataColumn` (PowerGamer1) +- Enh #18457: Add `EVENT_RESET` and `EVENT_FINISH` events to `yii\db\BatchQueryResult` (brandonkelly) +- Enh #18460: `compareValue` in `CompareValidator` can now take a closure returning a value (mmonem) +- Enh #18483: Add `yii\log\Logger::$dbEventNames` that allows specifying event names used to get statistical results (profiling) of DB queries (atiline) +- Enh #18487: Allow creating URLs for non-GET-verb rules (bizley) +- Enh #18493: Faster request parsing for REST UrlRule with prefix handling (bizley) +- 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) +- Enh #18518: Add support for ngrok’s `X-Original-Host` header (brandonkelly) 2.0.40 December 23, 2020 diff --git a/framework/base/Module.php b/framework/base/Module.php index bf73e70e32..fa84e553c7 100644 --- a/framework/base/Module.php +++ b/framework/base/Module.php @@ -33,7 +33,7 @@ use yii\di\ServiceLocator; * @property array $modules The modules (indexed by their IDs). * @property-read string $uniqueId The unique ID of the module. This property is read-only. * @property string $version The version of this module. Note that the type of this property differs in getter - * and setter. See [[getVersion()]] and [[setVersion()]] for details. + * and setter. See [[getVersion()]] and [[setVersion()]] for details. * @property string $viewPath The root directory of view files. Defaults to "[[basePath]]/views". * * @author Qiang Xue diff --git a/framework/base/Widget.php b/framework/base/Widget.php index ab27f028f2..a43a5652bb 100644 --- a/framework/base/Widget.php +++ b/framework/base/Widget.php @@ -16,9 +16,9 @@ use Yii; * For more details and usage information on Widget, see the [guide article on widgets](guide:structure-widgets). * * @property string|null $id ID of the widget. Note that the type of this property differs in getter and - * setter. See [[getId()]] and [[setId()]] for details. + * setter. See [[getId()]] and [[setId()]] for details. * @property \yii\web\View $view The view object that can be used to render views or view files. Note that the - * type of this property differs in getter and setter. See [[getView()]] and [[setView()]] for details. + * type of this property differs in getter and setter. See [[getView()]] and [[setView()]] for details. * @property-read string $viewPath The directory containing the view files for this widget. This property is * read-only. * diff --git a/framework/caching/MemCache.php b/framework/caching/MemCache.php index 2a83e5d3ff..8fe5378b5d 100644 --- a/framework/caching/MemCache.php +++ b/framework/caching/MemCache.php @@ -58,7 +58,7 @@ use yii\base\InvalidConfigException; * @property-read \Memcache|\Memcached $memcache The memcache (or memcached) object used by this cache * component. This property is read-only. * @property MemCacheServer[] $servers List of memcache server configurations. Note that the type of this - * property differs in getter and setter. See [[getServers()]] and [[setServers()]] for details. + * property differs in getter and setter. See [[getServers()]] and [[setServers()]] for details. * * @author Qiang Xue * @since 2.0 diff --git a/framework/classes.php b/framework/classes.php index 622a1b74b3..ac9767168b 100644 --- a/framework/classes.php +++ b/framework/classes.php @@ -174,6 +174,7 @@ return [ 'yii\db\cubrid\Schema' => YII2_PATH . '/db/cubrid/Schema.php', 'yii\db\cubrid\conditions\LikeConditionBuilder' => YII2_PATH . '/db/cubrid/conditions/LikeConditionBuilder.php', 'yii\db\mssql\ColumnSchema' => YII2_PATH . '/db/mssql/ColumnSchema.php', + 'yii\db\mssql\DBLibPDO' => YII2_PATH . '/db/mssql/DBLibPDO.php', 'yii\db\mssql\PDO' => YII2_PATH . '/db/mssql/PDO.php', 'yii\db\mssql\QueryBuilder' => YII2_PATH . '/db/mssql/QueryBuilder.php', 'yii\db\mssql\Schema' => YII2_PATH . '/db/mssql/Schema.php', diff --git a/framework/console/controllers/AssetController.php b/framework/console/controllers/AssetController.php index fe106f79bf..4f2e492dce 100644 --- a/framework/console/controllers/AssetController.php +++ b/framework/console/controllers/AssetController.php @@ -39,7 +39,7 @@ use yii\web\AssetBundle; * check [[jsCompressor]] and [[cssCompressor]] for more details. * * @property \yii\web\AssetManager $assetManager Asset manager instance. Note that the type of this property - * differs in getter and setter. See [[getAssetManager()]] and [[setAssetManager()]] for details. + * differs in getter and setter. See [[getAssetManager()]] and [[setAssetManager()]] for details. * * @author Qiang Xue * @author Paul Klimov diff --git a/framework/data/BaseDataProvider.php b/framework/data/BaseDataProvider.php index 97214cf602..5be48a1771 100644 --- a/framework/data/BaseDataProvider.php +++ b/framework/data/BaseDataProvider.php @@ -21,10 +21,10 @@ use yii\base\InvalidArgumentException; * uniquely identified by the corresponding key value in this array. * @property array $models The list of data models in the current page. * @property Pagination|false $pagination The pagination object. If this is false, it means the pagination is - * disabled. Note that the type of this property differs in getter and setter. See [[getPagination()]] and + * disabled. Note that the type of this property differs in getter and setter. See [[getPagination()]] and * [[setPagination()]] for details. * @property Sort|bool $sort The sorting object. If this is false, it means the sorting is disabled. Note that - * the type of this property differs in getter and setter. See [[getSort()]] and [[setSort()]] for details. + * the type of this property differs in getter and setter. See [[getSort()]] and [[setSort()]] for details. * @property int $totalCount Total number of possible data models. * * @author Qiang Xue diff --git a/framework/data/DataFilter.php b/framework/data/DataFilter.php index 18f218f362..6af8447cae 100644 --- a/framework/data/DataFilter.php +++ b/framework/data/DataFilter.php @@ -113,13 +113,12 @@ use yii\validators\Validator; * @see ActiveDataFilter * * @property array $errorMessages Error messages in format `[errorKey => message]`. Note that the type of this - * property differs in getter and setter. See [[getErrorMessages()]] and [[setErrorMessages()]] for details. + * property differs in getter and setter. See [[getErrorMessages()]] and [[setErrorMessages()]] for details. * @property mixed $filter Raw filter value. * @property array $searchAttributeTypes Search attribute type map. Note that the type of this property - * differs in getter and setter. See [[getSearchAttributeTypes()]] and [[setSearchAttributeTypes()]] for - * details. + * differs in getter and setter. See [[getSearchAttributeTypes()]] and [[setSearchAttributeTypes()]] for details. * @property Model $searchModel Model instance. Note that the type of this property differs in getter and - * setter. See [[getSearchModel()]] and [[setSearchModel()]] for details. + * setter. See [[getSearchModel()]] and [[setSearchModel()]] for details. * * @author Paul Klimov * @since 2.0.13 diff --git a/framework/data/Sort.php b/framework/data/Sort.php index d96178e132..0e62064427 100644 --- a/framework/data/Sort.php +++ b/framework/data/Sort.php @@ -70,7 +70,7 @@ use yii\web\Request; * * @property array $attributeOrders Sort directions indexed by attribute names. Sort direction can be either * `SORT_ASC` for ascending order or `SORT_DESC` for descending order. Note that the type of this property - * differs in getter and setter. See [[getAttributeOrders()]] and [[setAttributeOrders()]] for details. + * differs in getter and setter. See [[getAttributeOrders()]] and [[setAttributeOrders()]] for details. * @property-read array $orders The columns (keys) and their corresponding sort directions (values). This can * be passed to [[\yii\db\Query::orderBy()]] to construct a DB query. This property is read-only. * diff --git a/framework/db/BaseActiveRecord.php b/framework/db/BaseActiveRecord.php index ead5f5c7d6..aa5f3b0459 100644 --- a/framework/db/BaseActiveRecord.php +++ b/framework/db/BaseActiveRecord.php @@ -27,7 +27,7 @@ use yii\helpers\ArrayHelper; * read-only. * @property bool $isNewRecord Whether the record is new and should be inserted when calling [[save()]]. * @property array $oldAttributes The old attribute values (name-value pairs). Note that the type of this - * property differs in getter and setter. See [[getOldAttributes()]] and [[setOldAttributes()]] for details. + * property differs in getter and setter. See [[getOldAttributes()]] and [[setOldAttributes()]] for details. * @property-read mixed $oldPrimaryKey The old primary key value. An array (column name => column value) is * returned if the primary key is composite. A string is returned otherwise (null will be returned if the key * value is null). This property is read-only. diff --git a/framework/db/Connection.php b/framework/db/Connection.php index de462bae24..25ad2ecef1 100644 --- a/framework/db/Connection.php +++ b/framework/db/Connection.php @@ -119,7 +119,7 @@ use yii\caching\CacheInterface; * @property-read PDO $masterPdo The PDO instance for the currently active master connection. This property is * read-only. * @property QueryBuilder $queryBuilder The query builder for the current DB connection. Note that the type of - * this property differs in getter and setter. See [[getQueryBuilder()]] and [[setQueryBuilder()]] for details. + * this property differs in getter and setter. See [[getQueryBuilder()]] and [[setQueryBuilder()]] for details. * @property-read Schema $schema The schema information for the database opened by this connection. This * property is read-only. * @property-read string $serverVersion Server version as a string. This property is read-only. diff --git a/framework/i18n/I18N.php b/framework/i18n/I18N.php index 3e5bd425d1..49cf93bd45 100644 --- a/framework/i18n/I18N.php +++ b/framework/i18n/I18N.php @@ -19,7 +19,7 @@ use yii\base\InvalidConfigException; * * @property MessageFormatter $messageFormatter The message formatter to be used to format message via ICU * message format. Note that the type of this property differs in getter and setter. See - * [[getMessageFormatter()]] and [[setMessageFormatter()]] for details. + * [[getMessageFormatter()]] and [[setMessageFormatter()]] for details. * * @author Qiang Xue * @since 2.0 diff --git a/framework/log/Dispatcher.php b/framework/log/Dispatcher.php index d888d89a8d..8109e0b897 100644 --- a/framework/log/Dispatcher.php +++ b/framework/log/Dispatcher.php @@ -53,7 +53,7 @@ use yii\base\ErrorHandler; * @property int $flushInterval How many messages should be logged before they are sent to targets. This * method returns the value of [[Logger::flushInterval]]. * @property Logger $logger The logger. If not set, [[\Yii::getLogger()]] will be used. Note that the type of - * this property differs in getter and setter. See [[getLogger()]] and [[setLogger()]] for details. + * this property differs in getter and setter. See [[getLogger()]] and [[setLogger()]] for details. * @property int $traceLevel How many application call stacks should be logged together with each message. * This method returns the value of [[Logger::traceLevel]]. Defaults to 0. * diff --git a/framework/log/Target.php b/framework/log/Target.php index 846bc919a9..2a192e80d5 100644 --- a/framework/log/Target.php +++ b/framework/log/Target.php @@ -27,10 +27,10 @@ use yii\web\Request; * may specify [[except]] to exclude messages of certain categories. * * @property bool $enabled Indicates whether this log target is enabled. Defaults to true. Note that the type - * of this property differs in getter and setter. See [[getEnabled()]] and [[setEnabled()]] for details. + * of this property differs in getter and setter. See [[getEnabled()]] and [[setEnabled()]] for details. * @property int $levels The message levels that this target is interested in. This is a bitmap of level * values. Defaults to 0, meaning all available levels. Note that the type of this property differs in getter and - * setter. See [[getLevels()]] and [[setLevels()]] for details. + * setter. See [[getLevels()]] and [[setLevels()]] for details. * * For more details and usage information on Target, see the [guide article on logging & targets](guide:runtime-logging). * diff --git a/framework/mail/BaseMailer.php b/framework/mail/BaseMailer.php index 633974daa2..c4546fbd1f 100644 --- a/framework/mail/BaseMailer.php +++ b/framework/mail/BaseMailer.php @@ -23,7 +23,7 @@ use yii\web\View; * For more details and usage information on BaseMailer, see the [guide article on mailing](guide:tutorial-mailing). * * @property View $view View instance. Note that the type of this property differs in getter and setter. See - * [[getView()]] and [[setView()]] for details. + * [[getView()]] and [[setView()]] for details. * @property string $viewPath The directory that contains the view files for composing mail messages Defaults * to '@app/mail'. * diff --git a/framework/rbac/BaseManager.php b/framework/rbac/BaseManager.php index c8dda76f93..60cbc01aeb 100644 --- a/framework/rbac/BaseManager.php +++ b/framework/rbac/BaseManager.php @@ -20,7 +20,7 @@ use yii\base\InvalidValueException; * @property-read Role[] $defaultRoleInstances Default roles. The array is indexed by the role names. This * property is read-only. * @property string[] $defaultRoles Default roles. Note that the type of this property differs in getter and - * setter. See [[getDefaultRoles()]] and [[setDefaultRoles()]] for details. + * setter. See [[getDefaultRoles()]] and [[setDefaultRoles()]] for details. * * @author Qiang Xue * @since 2.0 diff --git a/framework/web/AssetManager.php b/framework/web/AssetManager.php index ebaeffc5b9..2d28d9246e 100644 --- a/framework/web/AssetManager.php +++ b/framework/web/AssetManager.php @@ -34,7 +34,7 @@ use yii\helpers\Url; * For more details and usage information on AssetManager, see the [guide article on assets](guide:structure-assets). * * @property AssetConverterInterface $converter The asset converter. Note that the type of this property - * differs in getter and setter. See [[getConverter()]] and [[setConverter()]] for details. + * differs in getter and setter. See [[getConverter()]] and [[setConverter()]] for details. * * @author Qiang Xue * @since 2.0 diff --git a/framework/web/User.php b/framework/web/User.php index 41b08a0eaf..5550fcd576 100644 --- a/framework/web/User.php +++ b/framework/web/User.php @@ -53,7 +53,7 @@ use yii\rbac\CheckAccessInterface; * user. `null` is returned if the user is not logged in (not authenticated). * @property-read bool $isGuest Whether the current user is a guest. This property is read-only. * @property string $returnUrl The URL that the user should be redirected to after login. Note that the type - * of this property differs in getter and setter. See [[getReturnUrl()]] and [[setReturnUrl()]] for details. + * of this property differs in getter and setter. See [[getReturnUrl()]] and [[setReturnUrl()]] for details. * * @author Qiang Xue * @since 2.0