20248 Commits

Author SHA1 Message Date
671fbefe84 File Log writer without newline. (#19941)
* File Log writer without newline.

* Fix minor correction.

* Fix tests.

* Add more test.

* Add line to CHANGELOG.md.
2023-08-30 14:14:12 +02:00
a2ee22044c prepare for next release 2023-08-29 15:36:45 +02:00
0f7248c7a2 release version 2.0.49 2.0.49 2023-08-29 15:36:17 +02:00
4ffb58ed56 Fix type (#19939) 2023-08-28 09:30:51 +02:00
8532622d7b Fix #19911: Resolved inconsistency in ActiveRecord::getAttributeLabel() with regard of overriding in primary model labels for attributes of related model in favor of allowing such overriding for all levels of relation nesting 2023-08-26 07:06:41 +04:00
d5b3b6ca83 Add note to UPGRADE guide for change in Validator behavior (#19938)
The `unique` and `exists` validators behave slightly different since
2.0.46 (issue #19407) when used on multiple/combined attributes.

See: https://github.com/yiisoft/yii2/issues/19407#issuecomment-1689625762
2023-08-26 05:08:16 +04:00
4c0a00f2b9 Fix #19924: Fix yii\i18n\Formatter to not throw error Unknown named parameter under PHP 8 2023-08-21 15:55:14 +04:00
e916e9d564 Fix #19914: Fixed ArrayHelper::keyExists() and ::remove() functions when the key is a float and the value is null 2023-08-18 15:31:09 +04:00
786a75ca63 Fix incorrect translation in db-query-builder.md (#19916) 2023-08-18 15:20:46 +04:00
73f57fdcb0 Fix #19872: Fixed the definition of dirty attributes in AR properties for a non-associative array in case of changing the order of elements 2023-08-18 15:19:24 +04:00
e40fb70fa8 Remove unnecessary type (#19932)
Because Web and Console application extend Base application there is no need to specify it.

Actually, PHPStan narrows this to _just_ BaseApplication because it is the only consistent type of the three so you lose Web and Console Application type hints.

See, https://phpstan.org/r/d21fb99f-c436-480b-99c2-32df35ec07fa
2023-08-18 15:15:39 +04:00
73902f0730 Added support for string and DateTimeInterface as Cookie::$expire (#19920)
* Added support for string as Cookie::$expire

* Updated changelog for #19920 (Broadened the accepted type of `Cookie::$expire` from `int` to `int|string|null`)

* Fixed `\yiiunit\framework\web\ResponseTest::parseHeaderCookies()` to overwrite existing cookie.

* Added support for `\DateTimeInterface` in `\yii\web\Cookie::$expire`

* Fixed `\yiiunit\framework\web\ResponseTest::cookiesTestProvider()` for PHP 5.4 and commited missing code for \DateTimeInterface processing in `\yii\web\Response::sendCookies()`
2023-08-15 18:38:10 +02:00
84c15dc5d1 Fix associative array cell content in Table widget (#19908)
* Fixed rendering of assosative arrays in `\yii\console\widgets\Table`

* Updated readme for #19908 (fix associative array cell content rendering in Table widget)

---------

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2023-08-09 14:05:46 +02:00
504a66dae5 Update documentation for setCookieParams (#19921)
The link for more information about "sameSite" lead to a 404 Not Found.
2023-07-30 11:51:25 +02:00
8a213315ac End fenced code block (#19919) 2023-07-28 13:13:01 +02:00
c8c0ea97c4 Fix #19899: Fixed GridView in some cases calling Model::generateAttributeLabel() to generate label values that are never used 2023-07-24 11:52:38 +03:00
79c83ba7db Fix #9899: Fix caching a MSSQL query with BLOB data type 2023-07-24 10:03:18 +03:00
7d2e2b9e70 Fix #16208: Fix yii\log\FileTarget to not export empty messages 2023-07-24 10:01:24 +03:00
1a0e91e912 Fix #19906: Fixed multiline strings in the \yii\console\widgets\Table widget 2023-07-24 09:56:04 +03:00
76d6345e85 Add test resetSequence() for SQLite. (#19895)
* Add test `resetSequence()`.

* add more test.
2023-07-17 09:53:21 +02:00
4352b8744b Fix #19884: Added support Enums in Query Builder 2023-07-10 18:07:10 +03:00
d135996c64 Fix #19857: Fix AttributeTypecastBehavior::resetOldAttributes() causes "class has no attribute named" InvalidArgumentException 2023-07-10 17:30:32 +03:00
b9e5a87f54 Fix tests, clean workflows, separate db tests, use codecov for code coverage (#19883) 2023-07-10 07:12:07 +03:00
b073daa8f0 Fix typo in description codesnippet (#19873) 2023-06-30 15:58:04 +02:00
85171844cf Fix #19868: Added whitespace sanitation for tests, due to updates in ICU 72 2023-06-21 18:28:12 +03:00
6c511d99fb Fix #19759: Update docs for Command::createTable(), Migration::createTable() and QueryBuilder::createTable() 2023-06-16 07:02:22 +03:00
94a1cc5019 Fix #19863: Fix link to auth clients security in ES guide 2023-06-14 15:23:37 +03:00
3cebbdad2e Fix #19853: Added support for default value for \yii\helpers\Console::select() 2023-06-09 19:36:21 +03:00
643d45a454 Add docs about default cache (#19861) 2023-06-09 19:34:38 +03:00
80a18ad6ba Fix #18859: Fix yii\web\Controller::bindInjectedParams() to not throw error when argument of ReflectionUnionType type is passed 2023-05-31 21:30:45 +03:00
f6bb12091b Fix #19841: Allow jQuery 3.7 to be installed 2023-05-28 13:50:15 +03:00
48617d54fc Fix #19843: Enable memcache/memcached tests (#19850) 2023-05-25 21:15:10 +03:00
2db470cd75 Translate tutorial-docker.md to pt-BR (#19820)
* Translate tutorial-docker.md to pt-BR

* Update translators.json

* Update tutorial-docker.md
2023-05-25 09:05:14 +02:00
1332eb98db prepare for next release 2023-05-24 23:04:21 +04:00
c9f491b4f7 release version 2.0.48.1 2.0.48.1 2023-05-24 23:04:02 +04:00
109871f839 Adjust version in CHANGELOG 2023-05-24 23:02:09 +04:00
37cd13e9c7 Fix #19847: Fix regression introduced in #15376 that caused DbManager::getRolesByUser() to return stale data 2023-05-24 20:21:37 +03:00
e8f2ca727d Update structure-models.md (#19846) 2023-05-24 09:36:23 +02:00
5bbf90148a Update CHANGELOG.md
trigger subsplit?
2023-05-22 18:00:48 +02:00
75ca241ac9 prepare for next release 2023-05-22 10:33:26 +04:00
8228d81b25 release version 2.0.48 2.0.48 2023-05-22 10:32:53 +04:00
0f1699db8d Fix build command for PHP 8.2 2023-05-21 16:23:05 +04:00
bfca9e33d9 Fix #19749: Add PHP 8.2 support
Co-authored-by: Tobias Munk <schmunk@usrbin.de>
Co-authored-by: Aldo Karendra <akarendra835@gmail.com>
Co-authored-by: Dana Luther <dana.luther@gmail.com>
Co-authored-by: Oleg Poludnenko <ua.oleg@gmail.com>
2023-05-21 15:17:59 +03:00
477a439a62 Fix minor changelog issues 2023-05-21 13:14:13 +04:00
a8e83abd8f Fix #19743: Non-associative array values in AR weren't considered dirty when reordered 2023-05-21 12:06:16 +03:00
301a1cf0e3 Fix #19807: Fix REST serializer not using serializeModel() when working with array of models 2023-05-21 11:16:22 +03:00
0fcd434c97 Fix #19838: Added yii\helpers\BaseFileHelper::getExtensionByMimeType() to get the most common extension for a given MIME type 2023-05-19 22:56:47 +03:00
0a811cbd0d Fix #19837: Fixed processing of numeric file extensions in yii\build\controllers\MimeTypeController::generateMimeTypesFile()
Fixed processing of nummeric file extensions in `\yii\build\controllers\MimeTypeController::generateMimeTypesFile()` and added common image file types (https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types#common_image_file_types)
2023-05-19 00:28:48 +03:00
821f72dd9a Fix #19736: Fix StringHelper::truncate(null, 10) causes error Deprecated: mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated 2023-05-12 19:55:36 +03:00
a81a0d6b53 Fix #19720: Fix "zh-HK" locale causing [error][yii\i18n\PhpMessageSource::loadFallbackMessages] The message file for category 'yii' does not exist 2023-05-11 21:34:51 +03:00