9324 Commits

Author SHA1 Message Date
72e46e6795 Merge branch 'master' into bugfix/20002-Superfluous_query_on_HEAD_request_in_serializer 2023-10-18 15:56:46 +08:00
cba3a5e87e Merge branch 'master' into 13920-validation-marks-valid-field-as-invalid 2023-10-17 09:50:31 +02:00
fe73d9c11f Merge pull request #20009 from terabytesoftw/fix-maskedinputasset
Fix `MaskedInputAsset::class`.
2023-10-16 15:03:53 +02:00
961a952f82 Fix #19927: Fixed console\controllers\MessageController when saving translations to database: fixed FK error when adding new string and language at the same time, checking/regenerating all missing messages and dropping messages for unused languages 2023-10-16 10:17:02 +03:00
87dea2570e Merge branch 'master' into bugfix/20002-Superfluous_query_on_HEAD_request_in_serializer 2023-10-16 09:13:51 +08:00
6ceb6f65f4 Fix MaskedInputAsset::class. 2023-10-15 06:28:12 -03:00
3014fa22e5 fix: #20002 optimize head request on serializeDataProvider 2023-10-14 12:28:22 +08:00
9875ae6445 Fixed a bug where the yii serve command would break if a custom router was supplied and it had a space in the path 2023-10-13 10:26:42 -07:00
02ed808056 New methods: BaseActiveRecord::loadRelations() and BaseActiveRecord::loadRelationsFor(). 2023-10-13 13:22:48 +03:00
505fd5a2f8 prepare for next release 2023-10-12 17:46:49 +02:00
4f1735995a release version 2.0.49.2 2023-10-12 17:46:26 +02:00
33254d5dad Update CHANGELOG.md
2.0.49.2 changelog
2023-10-12 17:43:55 +02:00
9f51fe3b4b Revert changes in mimeTypes.php from 4a1f2c6b9bc90427e91da73f5e8c8fa33d3c53c1
restores https://github.com/yiisoft/yii2/pull/19936
2023-10-06 10:02:32 +02:00
290e03cddc prepare for next release 2023-10-05 18:12:47 +02:00
4a1f2c6b9b release version 2.0.49.1 2023-10-05 18:12:27 +02:00
48d754cac2 Update CHANGELOG.md 2023-10-05 18:00:59 +02:00
7f3397a5cc Update framework/log/FileTarget.php
Co-authored-by: Bizley <pawel.bizley@gmail.com>
2023-10-01 23:31:10 +02:00
764926a877 Do not duplicate log messages in memory 2023-09-29 09:49:05 +02:00
17386c7501 fix: keep doublequote 2023-09-26 16:24:47 +08:00
ced6d04dc1 fix: #19978 - Mistake in Korean translation 2023-09-26 16:16:35 +08:00
ae4399e255 Merge branch 'master' into 13920-validation-marks-valid-field-as-invalid 2023-09-25 13:27:18 +02:00
757676128b Merge pull request #19963 from terabytesoftw/update-bower-inputmask-punycode
Update `bower-asset/inputmask`, `bower-asset/punycode`.
2023-09-22 12:05:32 +02:00
a028baf1b9 Fix order. 2023-09-22 06:14:23 -03:00
eb2add33a4 added CHANGELOG line 2023-09-21 15:09:23 +00:00
a32617eb13 Merge branch 'master' into feature/pcntl-req-check 2023-09-21 17:04:07 +02:00
20a4b7eff9 Update bower-asset/inputmask, bower-asset/punycode. 2023-09-21 11:22:53 -03:00
f0b970d4dd Merge branch 'master' into 13920-validation-marks-valid-field-as-invalid 2023-09-20 15:21:29 +02:00
18421ab976 Fixed tests. 2023-09-20 06:47:45 -03:00
fd5c1bbf27 Update CHANGELOG.md 2023-09-20 12:27:33 +03:00
5a48739c16 Merge branch 'master' into patch-2 2023-09-14 12:05:27 +02:00
30b491dfdf removed MIME file tests (#19951)
* removed MIME file tests
see also 0f7248c7a2 (commitcomment-127223170)

* added CHANGELOG line
2023-09-13 13:23:21 +02:00
b05ad49a19 trim(): Passing null to parameter #1 ($string) of type string is deprecated 2023-09-11 19:38:41 +03:00
e8c4a7e56e added PHP version check, fixed #19925 (#19936)
* added PHP version check, fixed #19925

* added CHANGELOG line

* fixed typo

* fixed typo

---------

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
2023-09-04 10:09:49 +02:00
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 2023-08-29 15:36:17 +02:00
cd774d7450 Merge branch 'master' into 13920-validation-marks-valid-field-as-invalid 2023-08-26 08:15:07 +04: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
c06b62e4be Merge branch 'master' into 13920-validation-marks-valid-field-as-invalid 2023-08-18 15:45:05 +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
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
ad3c2f516b Merge branch 'master' into 13920-validation-marks-valid-field-as-invalid 2023-08-10 16:24:45 +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
dcc0290b20 Fix #13920: Added my name to CHANGELOG.md 2023-07-24 15:50:29 +02:00