Browse Source

release version 2.0.45

tags/2.0.45^0 2.0.45
Alexander Makarov 3 years ago
parent
commit
0792736b35
No known key found for this signature in database
GPG Key ID: 3617B79C6A325E4A
  1. 2
      framework/BaseYii.php
  2. 16
      framework/CHANGELOG.md
  3. 6
      framework/composer.json
  4. 2
      framework/helpers/mimeTypes.php
  5. 4
      framework/rest/IndexAction.php
  6. 4
      framework/web/Request.php

2
framework/BaseYii.php

@ -93,7 +93,7 @@ class BaseYii
*/ */
public static function getVersion() public static function getVersion()
{ {
return '2.0.45-dev'; return '2.0.45';
} }
/** /**

16
framework/CHANGELOG.md

@ -1,21 +1,21 @@
Yii Framework 2 Change Log Yii Framework 2 Change Log
========================== ==========================
2.0.45 under development 2.0.45 February 11, 2022
------------------------ ------------------------
- Enh #18821: Allow `yii\db\ExpressionInterface` as column in `yii\db\conditions\InBuilder` (ntesic) - Bug #19004: Container::resolveCallableDependencies() unable to handle union and intersection types (sartor)
- Bug #19182: RBAC Migration failed when use oracle with oci8 (Murolike) - Bug #19041: Fix PHP 8.1 issues (longthanhtran, samdark, pamparam83, sartor, githubjeka)
- Bug #19047: Fix deprecated preg_match() passing null parameters #2 in db\mysql\Schema.php (longthanhtran)
- Bug #19130: Fix DbSession breaks in some case (longthanhtran)
- Bug #19138: Allow digits in language code (ntesic) - Bug #19138: Allow digits in language code (ntesic)
- Bug #19148: Fix undefined array key errors in `yii\db\ActiveRelationTrait` (stevekr) - Bug #19148: Fix undefined array key errors in `yii\db\ActiveRelationTrait` (stevekr)
- Bug #19041: Fix PHP 8.1 issues (longthanhtran, samdark, pamparam83, sartor, githubjeka) - Bug #19182: RBAC Migration failed when use oracle with oci8 (Murolike)
- Enh #19171: Added `$pagination` and `$sort` to `\yii\rest\IndexAction` for easy configuration (rhertogh)
- Bug #19187: Fix `yii\filters\PageCache` to store original headers names instead of normalized ones (bizley) - Bug #19187: Fix `yii\filters\PageCache` to store original headers names instead of normalized ones (bizley)
- Bug #19191: Change `\Exception` to `\Throwable` in `BadRequestHttpException` and `HttpException` (Dmitrijlin) - Bug #19191: Change `\Exception` to `\Throwable` in `BadRequestHttpException` and `HttpException` (Dmitrijlin)
- Bug #19204: Support numbers in Inflector::camel2words (longthanhtran) - Bug #19204: Support numbers in Inflector::camel2words (longthanhtran)
- Bug #19004: Container::resolveCallableDependencies() unable to handle union and intersection types (sartor) - Enh #18821: Allow `yii\db\ExpressionInterface` as column in `yii\db\conditions\InBuilder` (ntesic)
- Bug #19047: Fix deprecated preg_match() passing null parameters #2 in db\mysql\Schema.php (longthanhtran) - Enh #19171: Added `$pagination` and `$sort` to `\yii\rest\IndexAction` for easy configuration (rhertogh)
- Bug #19130: Fix DbSession breaks in some case (longthanhtran)
2.0.44 December 30, 2021 2.0.44 December 30, 2021

6
framework/composer.json

@ -29,7 +29,7 @@
{ {
"name": "Carsten Brandt", "name": "Carsten Brandt",
"email": "mail@cebe.cc", "email": "mail@cebe.cc",
"homepage": "https://cebe.cc/", "homepage": "https://www.cebe.cc/",
"role": "Core framework development" "role": "Core framework development"
}, },
{ {
@ -57,8 +57,8 @@
], ],
"support": { "support": {
"issues": "https://github.com/yiisoft/yii2/issues?state=open", "issues": "https://github.com/yiisoft/yii2/issues?state=open",
"forum": "https://www.yiiframework.com/forum/", "forum": "https://forum.yiiframework.com/",
"wiki": "https://www.yiiframework.com/wiki/", "wiki": "https://www.yiiframework.com/wiki",
"irc": "ircs://irc.libera.chat:6697/yii", "irc": "ircs://irc.libera.chat:6697/yii",
"source": "https://github.com/yiisoft/yii2" "source": "https://github.com/yiisoft/yii2"
}, },

2
framework/helpers/mimeTypes.php

@ -400,6 +400,7 @@ return [
'log' => 'text/plain', 'log' => 'text/plain',
'lostxml' => 'application/lost+xml', 'lostxml' => 'application/lost+xml',
'lrf' => 'application/octet-stream', 'lrf' => 'application/octet-stream',
0 => 'application/vnd.lotus-1-2-3',
'lrm' => 'application/vnd.ms-lrm', 'lrm' => 'application/vnd.ms-lrm',
'ltf' => 'application/vnd.frogans.ltf', 'ltf' => 'application/vnd.frogans.ltf',
'lvp' => 'audio/vnd.lucent.voice', 'lvp' => 'audio/vnd.lucent.voice',
@ -491,7 +492,6 @@ return [
'mseed' => 'application/vnd.fdsn.mseed', 'mseed' => 'application/vnd.fdsn.mseed',
'mseq' => 'application/vnd.mseq', 'mseq' => 'application/vnd.mseq',
'msf' => 'application/vnd.epson.msf', 'msf' => 'application/vnd.epson.msf',
0 => 'application/vnd.lotus-1-2-3',
'msh' => 'model/mesh', 'msh' => 'model/mesh',
'msi' => 'application/x-msdownload', 'msi' => 'application/x-msdownload',
'msl' => 'application/vnd.mobius.msl', 'msl' => 'application/vnd.mobius.msl',

4
framework/rest/IndexAction.php

@ -87,8 +87,6 @@ class IndexAction extends Action
* @since 2.0.13 * @since 2.0.13
*/ */
public $dataFilter; public $dataFilter;
/** /**
* @var array|Pagination|false The pagination to be used by [[prepareDataProvider()]]. * @var array|Pagination|false The pagination to be used by [[prepareDataProvider()]].
* If this is `false`, it means pagination is disabled. * If this is `false`, it means pagination is disabled.
@ -97,7 +95,6 @@ class IndexAction extends Action
* @since 2.0.45 * @since 2.0.45
*/ */
public $pagination = []; public $pagination = [];
/** /**
* @var array|Sort|false The sorting to be used by [[prepareDataProvider()]]. * @var array|Sort|false The sorting to be used by [[prepareDataProvider()]].
* If this is `false`, it means sorting is disabled. * If this is `false`, it means sorting is disabled.
@ -107,6 +104,7 @@ class IndexAction extends Action
*/ */
public $sort = []; public $sort = [];
/** /**
* @return ActiveDataProvider * @return ActiveDataProvider
*/ */

4
framework/web/Request.php

@ -39,8 +39,8 @@ use yii\validators\IpValidator;
* @property string $baseUrl The relative URL for the application. * @property string $baseUrl The relative URL for the application.
* @property array|object $bodyParams The request parameters given in the request body. Note that the type of * @property array|object $bodyParams The request parameters given in the request body. Note that the type of
* this property differs in getter and setter. See [[getBodyParams()]] and [[setBodyParams()]] for details. * this property differs in getter and setter. See [[getBodyParams()]] and [[setBodyParams()]] for details.
* @property-read string $contentType Request content-type. Null is returned if this information is not * @property-read string $contentType Request content-type. Empty string is returned if this information is
* available. * not available.
* @property-read CookieCollection $cookies The cookie collection. * @property-read CookieCollection $cookies The cookie collection.
* @property-read string $csrfToken The token used to perform CSRF validation. * @property-read string $csrfToken The token used to perform CSRF validation.
* @property-read string $csrfTokenFromHeader The CSRF token sent via [[CSRF_HEADER]] by browser. Null is * @property-read string $csrfTokenFromHeader The CSRF token sent via [[CSRF_HEADER]] by browser. Null is

Loading…
Cancel
Save