9304 Commits

Author SHA1 Message Date
2874e070f3 Fix #19322: Revert force setting value to empty string in case it's null in yii\validators\FilterValidator::validateAttribute() 2022-03-24 17:50:00 +04:00
7cc45f75f5 Add TrimValidator (#19304)
* Add TrimValidator

* Update Validator.php

* Update Validator.php

* Update TrimValidator.php

* Update TrimValidator.php

* Update TrimValidator.php

* Update TrimValidator.php

* Update CHANGELOG.md

* Update Validator.php
2022-03-22 11:16:47 +01:00
7f244793f5 Rewrite Model::attributes() (#19309)
* Optimize Model::attributes()

* Update CHANGELOG.md
2022-03-18 08:09:22 +01:00
a843c61da6 Set the default to an array (#19306) 2022-03-16 08:20:03 +01:00
f3473aa4e8 Fix Model::__clone() (#19291)
* Fix Model::__clone()

Reset validators and errors after cloning to prevent changing cloned model via inner objects of clone like as InlineValidator

* Update CHANGELOG.md

Co-authored-by: Bizley <pawel@positive.codes>
2022-03-09 08:02:51 +01:00
4cb799bf92 Fix @param type (#19286) 2022-03-05 10:31:33 +01:00
3203353a38 Remove code duplication in ActiveRecord::attributes() 2022-02-20 01:01:24 +03:00
7b8c29d874 Fix #19243: Handle finfo_open for tar.xz as application/octet-stream on PHP 8.1 2022-02-19 23:45:20 +03:00
4d90778861 Fix bug #19235 (#19247)
* Fix bug #19235

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md
2022-02-18 09:27:18 +01:00
cb5e180695 Fix PhpDoc of yii\db\pgsql\QueryBuilder::normalizeTableRowData() (#19234) 2022-02-15 14:27:59 +03:00
200d8b87d5 prepare for next release 2022-02-11 16:13:11 +03:00
0792736b35 release version 2.0.45 2022-02-11 16:12:40 +03:00
aa61a7b77a clarification added (#19220) 2022-02-10 14:07:39 +01:00
9fbdc9f01b Fix #18821: Additional type fixes (#19217) 2022-02-09 11:35:20 +03:00
730f0e56b5 Fix #18821: Allow yii\db\ExpressionInterface as column in yii\db\conditions\InBuilder 2022-02-08 16:51:38 +03:00
71e810c89d Fix #19130: Fix DbSession breaks in some case 2022-02-08 16:45:42 +03:00
7a2689e761 Fix #19004: Container::resolveCallableDependencies() unable to handle union and intersection types
Co-authored-by: Sartor <sartor@syneforge.com>
2022-02-07 22:40:13 +03:00
6a36fa82c7 Fix #19047, fix #19118: Fix deprecated preg_match() passing null parameters #2 in db\mysql\Schema.php 2022-02-07 01:29:03 +03:00
cf1600411c Fix #19204: Support numbers in Inflector::camel2words 2022-02-03 17:23:47 +03:00
60c91eb433 Fix BC introduced in #19188 (#19194) 2022-01-27 21:47:37 +03:00
dbb157fd32 Fix #19187: Fix yii\filters\PageCache to store original headers names instead of normalized ones 2022-01-27 00:52:32 +03:00
0eaa71d46c Fix #19191: Change \Exception to \Throwable in BadRequestHttpException and HttpException 2022-01-27 00:51:23 +03:00
e691713ed7 Fix #19171: Added $pagination and $sort to \yii\rest\IndexAction for easy configuration 2022-01-23 23:26:59 +03:00
437b0d51aa Fix #19182: RBAC Migration failed when use oracle with oci8 2022-01-21 19:26:52 +03:00
ebb1d8bc60 Fix #19178: Fix null value in unserialize for PHP 8.1 (#19178) 2022-01-20 11:22:25 +03:00
942e726a8d Fix #19176: Add #[\ReturnTypeWillChange] on MSSQL classes (#19177) 2022-01-20 10:25:41 +03:00
67ea4cf968 Fix #19148: Fix undefined array key errors in yii\db\ActiveRelationTrait 2022-01-19 01:47:07 +03:00
f555fce82b Fix typo (#19168) 2022-01-15 08:43:05 +01:00
1271bc419f Fix #19041: Fix PHP 8.1 issues 2022-01-14 13:52:01 +03:00
e68b7ae162 Fix #19138: Allow digits in language code
Co-authored-by: ntesic <nikolatesic@gmail.com>
2022-01-08 12:32:19 +03:00
e353835cc5 Fixed typo (#19134) 2022-01-05 15:12:10 +03:00
d7aec6b8e7 prepare for next release 2021-12-30 10:51:17 +03:00
655786b7ed release version 2.0.44 2021-12-30 10:50:56 +03:00
fe7f5ed0fa Use https in composer.json for yiiframework.com 2021-12-30 10:38:45 +03:00
214746c737 Adjust CHANGELOG messages 2021-12-30 10:34:08 +03:00
12763a146e Fix #19067: Fix constant session regeneration (#19113)
* Fix constant session regeneration
* Add tests for session ID, always regenerating session ID for switching identity
2021-12-29 12:45:13 +03:00
6fb16bc30f Fix #19098: Add yii\helper\BaseHtml::$normalizeClassAttribute to fix duplicate classes 2021-12-27 21:44:48 +03:00
02fe7f42c8 Fix #18660: Check name if backslash appears 2021-12-27 17:26:28 +03:00
cccb65a70d Fix #19108: Optimize Component::hasEventHandlers() and Component::trigger() 2021-12-23 14:35:50 +03:00
8e0e5ad814 Fix #19096: Fix Request::getIsConsoleRequest() may return erroneously when testing a Web application in Codeception 2021-12-22 00:57:30 +03:00
6067608321 Fix #19005: Add yii\base\Module::setControllerPath() 2021-12-09 10:46:15 +03:00
1e41533789 (Docs) Normalized existing "virtual" / "magic" methods' descriptions, add missing ones (#19066) 2021-12-08 12:27:28 +03:00
6c9eb1a90c (Docs) Fixed preview for $prepareDataProvider (#19055) 2021-12-02 17:21:34 +03:00
766cf701e5 Fix #19031: Fix displaying console help for parameters with declared types 2021-12-01 15:11:19 +03:00
0d899fa18b Fix #19030: Add DI container usage to yii\base\Widget::end() 2021-11-30 23:58:24 +03:00
d52c1237ca Update Controller phpdoc (#19052) 2021-11-30 17:12:53 +03:00
17aa0e40c1 Fix #13105: Add yiiActiveForm validate_only property for skipping form auto-submission 2021-11-26 10:19:50 +03:00
6aa5bd8d46 Fix #18967: Use proper attribute names for tabular data in yii\widgets\ActiveField::addAriaAttributes() 2021-11-22 13:00:45 +03:00
81a3b83995 Fix #19021: Fix return type in PhpDoc yii\db\Migration functions up(), down(), safeUp() and safeDown()
* Fixed PhpDoc in Migration.php (revert #18886)

Fixed the return type of `up()`, `down()`, `safeUp()` and `safeDown()` functions to match the described behavior.
The current implementation checks for `false`, "all other return values mean the migration succeeds".
This PR also reverts #18886 since it was a code fix for what was documentation error.

Allow all possible values for `yii\db\Migration` functions `up()`, `down()`, `safeUp()` and `safeDown()`
2021-11-22 00:43:53 +03:00
552593ca3b Prepare for new apidoc (part 2) (#19010)
* Fix broken links for events with different namespace
* Fix broken links in see tag
* Fix broken links in see tag (loadData())
* Fix broken link for var_export()
* Fix broken link for CVE
* Remove redundant markdown link wrap in see tags
* Remove see tags that refer to private properties
* Remove more see tags that refer to private properties
* Remove see tags that refer to private methods
* Remove one more redundant markdown link wrap in see tag [skip ci]
* Fix typo in see tag (causes broken link)
* Remove more see tags that refer to private methods
2021-11-18 10:10:09 +03:00