Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 40b1ec3

Browse files
committedFeb 13, 2025
release version 2.0.52
1 parent becf2b2 commit 40b1ec3

File tree

9 files changed

+24
-18
lines changed

9 files changed

+24
-18
lines changed
 

‎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.52-dev';
96+
return '2.0.52';
9797
}
9898

9999
/**

‎framework/CHANGELOG.md

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

4-
2.0.52 under development
4+
2.0.52 February 13, 2025
55
------------------------
66

7-
- Bug #20292: Fix `\yii\web\Session` should not set cookie params, when `session.use_cookies` is `false` (cebe)
8-
- Bug #20232: Fix regression introduced in `GHSA-cjcc-p67m-7qxm` while attaching behavior defined by `__class` array key (erickskrauch)
7+
- Bug #17365: Fix "Trying to access array offset on null" warning (xcopy)
8+
- Bug #20140: Fix compatibility with PHP 8.4: calling `session_set_save_handler()` (Izumi-kun)
99
- Bug #20231: Fix regression introduced in #20167 in `yii\validators\FileValidator` (bizley)
10-
- Enh #20247: Support for variadic console controller action methods (brandonkelly)
10+
- Bug #20232: Fix regression introduced in `GHSA-cjcc-p67m-7qxm` while attaching behavior defined by `__class` array key (erickskrauch)
1111
- Bug #20256: Add support for dropping views in MSSQL server when running migrate/fresh (ambrozt)
12+
- Bug #20282: Fix compatibility with PHP 8.4: deprecated constant `E_STRICT` (Izumi-kun)
13+
- Bug #20284: Revert punycode to 1.4.x which supports pre ES6 format (mtangoo)
14+
- Bug #20292: Fix `\yii\web\Session` should not set cookie params, when `session.use_cookies` is `false` (cebe)
15+
- Bug #20296: Fix broken enum test (briedis)
16+
- Bug #20300: Clear stat cache in `FileCache::setValue()` (rob006)
17+
- Bug #20308: Allow CompositeAuth auth methods to use their own user if defined (mtangoo)
18+
- Bug #20313: Allow CompositeAuth auth methods to use their own request and response if defined (mtangoo)
19+
- Enh #20247: Support for variadic console controller action methods (brandonkelly)
1220
- Enh #20248: Add support for attaching behaviors in configurations with Closure (timkelty)
1321
- Enh #20267: Fixed called class check in `Widget::end()` when widget configured using callable (rob006, jrajamaki)
1422
- Enh #20268: Minor optimisation in `\yii\helpers\BaseArrayHelper::map` (chriscpty)
1523
- Enh #20273: Remove unnecessary `paragonie/random_compat` dependency (timwolla)
16-
- Chg #20276: Removed autogenerated migration phpdoc (userator)
17-
- Bug #20282: Fix compatibility with PHP 8.4: deprecated constant `E_STRICT` (Izumi-kun)
18-
- Bug #20284: Revert punycode to 1.4.x which supports pre ES6 format (mtangoo)
19-
- New #20279: Add to the `\yii\web\Request` CSRF validation by custom HTTP header (olegbaturin)
2024
- Enh #20279: Add to the `\yii\web\Request` `csrfHeader` property to configure a custom HTTP header for CSRF validation (olegbaturin)
2125
- Enh #20279: Add to the `\yii\web\Request` `csrfTokenSafeMethods` property to configure a custom safe HTTP methods list (olegbaturin)
22-
- Bug #20140: Fix compatibility with PHP 8.4: calling `session_set_save_handler()` (Izumi-kun)
23-
- New #20185: Add `BackedEnum` support to `AttributeTypecastBehavior` (briedis)
24-
- Bug #17365: Fix "Trying to access array offset on null" warning (xcopy)
2526
- Enh #20295: Add an ability to have wildcards in `yii\log\Target::$maskVars` array (xcopy)
26-
- Bug #20296: Fix broken enum test (briedis)
27-
- Bug #20300: Clear stat cache in `FileCache::setValue()` (rob006)
2827
- Enh #20306: Add new `yii\helpers\ArrayHelper::flatten()` method (xcopy)
29-
- Bug #20308: Allow CompositeAuth auth methods to use their own user if defined (mtangoo)
30-
- Bug #20313: Allow CompositeAuth auth methods to use their own request and response if defined (mtangoo)
28+
- Chg #20276: Removed autogenerated migration phpdoc (userator)
29+
- New #20185: Add `BackedEnum` support to `AttributeTypecastBehavior` (briedis)
30+
- New #20279: Add to the `\yii\web\Request` CSRF validation by custom HTTP header (olegbaturin)
31+
3132

3233
2.0.51 July 18, 2024
3334
--------------------

‎framework/base/Widget.php

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class Widget extends Component implements ViewContextInterface
6565
*/
6666
private static $_resolvedClasses = [];
6767

68+
6869
/**
6970
* Initializes the object.
7071
* This method is called at the end of the constructor.

‎framework/classes.php

+1
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@
391391
'yii\web\ResponseFormatterInterface' => YII2_PATH . '/web/ResponseFormatterInterface.php',
392392
'yii\web\ServerErrorHttpException' => YII2_PATH . '/web/ServerErrorHttpException.php',
393393
'yii\web\Session' => YII2_PATH . '/web/Session.php',
394+
'yii\web\SessionHandler' => YII2_PATH . '/web/SessionHandler.php',
394395
'yii\web\SessionIterator' => YII2_PATH . '/web/SessionIterator.php',
395396
'yii\web\TooManyRequestsHttpException' => YII2_PATH . '/web/TooManyRequestsHttpException.php',
396397
'yii\web\UnauthorizedHttpException' => YII2_PATH . '/web/UnauthorizedHttpException.php',

‎framework/filters/auth/CompositeAuth.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
/**
43
* @link https://www.yiiframework.com/
54
* @copyright Copyright (c) 2008 Yii Software LLC

‎framework/helpers/mimeExtensions.php

+1
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,7 @@
961961
'pjp',
962962
'pjpeg',
963963
],
964+
'image/jxl' => 'jxl',
964965
'image/ktx' => 'ktx',
965966
'image/png' => 'png',
966967
'image/prs.btif' => 'btif',

‎framework/helpers/mimeTypes.php

+1
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@
376376
'js' => 'text/javascript',
377377
'json' => 'application/json',
378378
'jsonml' => 'application/jsonml+json',
379+
'jxl' => 'image/jxl',
379380
'kar' => 'audio/midi',
380381
'karbon' => 'application/vnd.kde.karbon',
381382
'kfo' => 'application/vnd.kde.kformula',

‎framework/web/Request.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
* @property-read string $contentType Request content-type. Empty string is returned if this information is
4242
* not available.
4343
* @property-read CookieCollection $cookies The cookie collection.
44-
* @property-read string $csrfToken The token used to perform CSRF validation.
44+
* @property-read null|string $csrfToken The token used to perform CSRF validation. Null is returned if the
45+
* [[validateCsrfHeaderOnly]] is true.
4546
* @property-read string|null $csrfTokenFromHeader The CSRF token sent via [[csrfHeader]] by browser. Null is
4647
* returned if no such header is sent.
4748
* @property-read array $eTags The entity tags.

‎framework/web/SessionHandler.php

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class SessionHandler implements SessionHandlerInterface
2222
*/
2323
private $_session;
2424

25+
2526
public function __construct(Session $session)
2627
{
2728
$this->_session = $session;

0 commit comments

Comments
 (0)
Failed to load comments.