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 8228d81

Browse files
committedMay 22, 2023
release version 2.0.48
1 parent 0f1699d commit 8228d81

File tree

6 files changed

+26
-26
lines changed

6 files changed

+26
-26
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.48-dev';
96+
return '2.0.48';
9797
}
9898

9999
/**

‎framework/CHANGELOG.md

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

4-
2.0.48 under development
5-
------------------------
4+
2.0.48 May 22, 2023
5+
-------------------
66

7-
- Bug #19749: Add PHP 8.2 support (samdark, schmunk42, aldok10, DanaLuther)
8-
- Bug #19743: Non-associative array values in AR weren't considered dirty when reordered (samdark)
9-
- Bug #19807: Fix REST serializer not using `serializeModel()` when working with an array of models (zucha)
10-
- Enh #19766: Add support for PHP generators to JSON helper (vladis84)
11-
- Bug #19683: Updated `framework\mimeType.php` to the actual value. Fix typo in `build/controllers/MimeTypeController.php` (DeryabinSergey)
12-
- Bug #19705: Add binary and other data types to `$typeMap` list for MySQL (sohelahmed7)
13-
- Enh #19741: Added option to use a closure for `$variations` definition in `yii\filters\PageCache` (nadar)
147
- Bug #15376: Added $userId for RBAC roles cache (manchenkoff)
8+
- Bug #17194: Fix unnecessary SQL updates in the database on attributes typecast via `yii\behaviors\AttributeTypecastBehavior` (aivchen)
159
- Bug #18867: Fixed multiple issues with `yii\grid\CheckboxColumn`: "check all" checkbox not being checked on page load when all data row checkboxes are initially checked; clicking checkboxes triggered "change" event for other checkboxes that do not change their state; "check all" checkbox not being checked when disabled checkboxes are present and clicking last non-checked data row checkbox (PowerGamer1)
1610
- Bug #19635: PHP 8.2 compatibility fix for `yii\validators\DateValidator` (PowerGamer1)
17-
- Bug #17194: Fix unnecessary SQL updates in the database on attributes typecast via `yii\behaviors\AttributeTypecastBehavior` (aivchen)
11+
- Bug #19683: Updated `framework\mimeType.php` to the actual value. Fix typo in `build/controllers/MimeTypeController.php` (DeryabinSergey)
1812
- Bug #19693: Fix db/Command not caching `NULL` result with scalar fetchMode (Arkeins)
19-
- Enh #15376: Added cache usage for `yii\rbac\DbManager::getRolesByUser()` (manchenkoff)
20-
- Enh #9740: Usage of DI instead of new keyword in Schemas (manchenkoff)
21-
- Enh #19689: Remove empty elements from the `class` array in `yii\helpers\BaseHtml::renderTagAttributes()` to prevent unwanted spaces (MoritzLost)
22-
- Chg #19696: Change visibility of `yii\web\View::isPageEnded` to `protected` (lubosdz, samdark)
13+
- Bug #19705: Add binary and other data types to `$typeMap` list for MySQL (sohelahmed7)
2314
- Bug #19712: Cast shell_exec() output to string for jsCompressor (impayru)
24-
- Bug #19734: PHP 8.1 compatibility fix for `$query->orderBy(null)` (uaoleg)
15+
- Bug #19720: Fix "zh-HK" locale causing [error][yii\i18n\PhpMessageSource::loadFallbackMessages] The message file for category 'yii' doesn't exist (uaoleg)
2516
- Bug #19731: Fix `yii\data\Sort` to generate a proper link when multisort is on and attribute has a default sort order set (bizley)
17+
- Bug #19734: PHP 8.1 compatibility fix for `$query->orderBy(null)` (uaoleg)
2618
- Bug #19735: Fix `yii\validators\NumberValidator` to use a programmable message for the value validation (bizley)
19+
- Bug #19736: Fix `StringHelper::truncate(null, 10)` causes error `Deprecated: mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated` (uaoleg)
20+
- Bug #19743: Non-associative array values in AR weren't considered dirty when reordered (samdark)
21+
- Bug #19749: Add PHP 8.2 support (samdark, schmunk42, aldok10, DanaLuther)
2722
- Bug #19770: Fix `yii\mutex\MysqlMutex` `keyPrefix` expression param binding (kamarton)
28-
- Enh #19794: Add caching in `yii\web\Request` for `getUserIP()` and `getSecureForwardedHeaderTrustedParts()` (rhertogh)
2923
- Bug #19795: Fix `yii\web\Response::redirect()` to prevent setting headers with URL containing new line character (bizley)
30-
- Enh #19804: Remove the unnecessary call to `$this->oldAttributes` in `BaseActiveRecord::getDirtyAttributes()` (thiagotalma)
24+
- Bug #19807: Fix REST serializer not using `serializeModel()` when working with an array of models (zucha)
3125
- Bug #19813: Fix `yii\base\DynamicModel` validation with validators that reference missing attributes (michaelarnauts)
32-
- Enh #19816: Explicitly pass `$fallbackToMaster` as `true` to `getSlavePdo()` to ensure it isn't affected by child class with changed defaults (developedsoftware)
3326
- Bug #19828: Fix "strtr(): Passing null to parameter #1 ($string) of type string is deprecated" (uaoleg)
34-
- Bug #19720: Fix "zh-HK" locale causing [error][yii\i18n\PhpMessageSource::loadFallbackMessages] The message file for category 'yii' doesn't exist (uaoleg)
35-
- Bug #19736: Fix `StringHelper::truncate(null, 10)` causes error `Deprecated: mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated` (uaoleg)
36-
- Enh #19838: Added `yii\helpers\BaseFileHelper::getExtensionByMimeType()` to get the most common extension for a given MIME type (rhertogh)
3727
- Bug #19837: Fixed processing of numeric file extensions in `yii\build\controllers\MimeTypeController::generateMimeTypesFile()` (rhertogh)
28+
- Enh #9740: Usage of DI instead of new keyword in Schemas (manchenkoff)
29+
- Enh #15376: Added cache usage for `yii\rbac\DbManager::getRolesByUser()` (manchenkoff)
30+
- Enh #19689: Remove empty elements from the `class` array in `yii\helpers\BaseHtml::renderTagAttributes()` to prevent unwanted spaces (MoritzLost)
31+
- Enh #19741: Added option to use a closure for `$variations` definition in `yii\filters\PageCache` (nadar)
32+
- Enh #19766: Add support for PHP generators to JSON helper (vladis84)
33+
- Enh #19794: Add caching in `yii\web\Request` for `getUserIP()` and `getSecureForwardedHeaderTrustedParts()` (rhertogh)
34+
- Enh #19804: Remove the unnecessary call to `$this->oldAttributes` in `BaseActiveRecord::getDirtyAttributes()` (thiagotalma)
35+
- Enh #19816: Explicitly pass `$fallbackToMaster` as `true` to `getSlavePdo()` to ensure it isn't affected by child class with changed defaults (developedsoftware)
36+
- Enh #19838: Added `yii\helpers\BaseFileHelper::getExtensionByMimeType()` to get the most common extension for a given MIME type (rhertogh)
37+
- Chg #19696: Change visibility of `yii\web\View::isPageEnded` to `protected` (lubosdz, samdark)
38+
3839

3940
2.0.47 November 18, 2022
4041
------------------------

‎framework/classes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,9 @@
345345
'yii\validators\RequiredValidator' => YII2_PATH . '/validators/RequiredValidator.php',
346346
'yii\validators\SafeValidator' => YII2_PATH . '/validators/SafeValidator.php',
347347
'yii\validators\StringValidator' => YII2_PATH . '/validators/StringValidator.php',
348+
'yii\validators\TrimValidator' => YII2_PATH . '/validators/TrimValidator.php',
348349
'yii\validators\UniqueValidator' => YII2_PATH . '/validators/UniqueValidator.php',
349350
'yii\validators\UrlValidator' => YII2_PATH . '/validators/UrlValidator.php',
350-
'yii\validators\TrimValidator' => YII2_PATH . '/validators/TrimValidator.php',
351351
'yii\validators\ValidationAsset' => YII2_PATH . '/validators/ValidationAsset.php',
352352
'yii\validators\Validator' => YII2_PATH . '/validators/Validator.php',
353353
'yii\web\Application' => YII2_PATH . '/web/Application.php',

‎framework/db/conditions/LikeCondition.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct($column, $operator, $value)
4242
*
4343
* @param array|null|false an array of mappings from the special characters to their escaped counterparts.
4444
* You may use `false` to indicate the values are already escaped and no escape should be applied,
45-
* or either `null` or empty array if escaping is condition builder responsibility.
45+
* or either `null` or empty array if escaping is condition builder responsibility.
4646
* Note that when using an escape mapping (or the third operand is not provided),
4747
* the values will be automatically enclosed within a pair of percentage characters.
4848
*/

‎framework/helpers/BaseFileHelper.php

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class BaseFileHelper
3939
* @since 2.0.14
4040
*/
4141
public static $mimeAliasesFile = '@yii/helpers/mimeAliases.php';
42-
4342
/**
4443
* @var string the path (or alias) of a PHP file containing extensions per MIME type.
4544
* @since 2.0.48

‎framework/web/View.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ class View extends \yii\base\View
133133

134134
private $_assetManager;
135135

136+
136137
/**
137138
* Whether [[endPage()]] has been called and all files have been registered
138139
* @var bool
139140
* @since 2.0.44
140141
*/
141142
protected $isPageEnded = false;
142143

143-
144144
/**
145145
* Marks the position of an HTML head section.
146146
*/

0 commit comments

Comments
 (0)
Failed to load comments.