9066 Commits

Author SHA1 Message Date
ea60fba0ae Fix yii\base\Controller::bindInjectedParams() to not throw error when argument of ReflectionUnionType type is passed (#18869) 2021-09-06 20:16:14 +02:00
932806b97d Fix #18812: Added error messages and optimized "error" methods in yii\helpers\BaseJson 2021-09-06 15:51:13 +03:00
ac373c06fe Fix #18845: Fix duplicating id in MigrateController::addDefaultPrimaryKey() 2021-09-03 11:35:19 +03:00
4f387d05c1 Fix #17119: Fix yii\caching\Cache::multiSet() to use yii\caching\Cache::$defaultDuration when no duration is passed 2021-09-03 10:02:47 +03:00
0b29ba870e Fix #18762: Added yii\helpers\Json::$keepObjectType and yii\web\JsonResponseFormatter::$keepObjectType in order to avoid changing zero-indexed objects to array in yii\helpers\Json::encode() 2021-08-24 22:30:33 +03:00
ec07ad9ff9 Fix #18783: Add support for URI namespaced tags in XmlResponseFormatter, add XmlResponseFormatter::$objectTagToLowercase option to lowercase object tags
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-08-24 16:54:50 +03:00
489a543b10 Use ircs as IRC protocol
See b583310476
2021-08-19 23:17:05 +03:00
44388e2cf9 Revert changes in dispatcher 18841 (#18843) 2021-08-18 23:29:04 +03:00
383241f65c Fix #18840: Fix yii2/log/Logger to set logger globally 2021-08-18 00:16:57 +03:00
df6e5869bd docs: update RFC 7239 link (#18839)
fix #18838
2021-08-16 17:26:31 +02:00
b7943c6732 Fix #18823: Rollback changes #18806 in yii\validators\ExistValidator::checkTargetRelationExistence() 2021-08-15 16:15:14 +03:00
c21322f0c6 Added missing note for $categoryMap (#18834) 2021-08-14 11:08:44 +02:00
63e93ba243 Fix #18832 - Inflector::camel2words() adding extra spaces (#18833) 2021-08-14 10:43:23 +02:00
463a67bc73 Add ability to turn the sorting off for a clicked column in GridView with multisort (#18826)
* Add ability to turn the sorting off for a clicked column in GridView with multisort

* Update Sort.php

* Fix SortTest

* Update CHANGELOG.md

Co-authored-by: Bizley <pawel@positive.codes>
2021-08-11 13:37:37 +02:00
c94d7049c5 Issue #18646 Cleanup auth data from session if findIdentity() returns… (#18649)
* Issue #18646 Cleanup auth data from session if findIdentity() returns null

* Issue #18646 Refactor fix to remove stale identity data from session

* Issue #18646 Fix test for HttpBasicAuth (#15658)

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
2021-08-11 10:35:01 +02:00
43f6a79e55 prepare for next release 2021-08-09 20:39:11 +03:00
540a9011af release version 2.0.43 2021-08-09 20:38:43 +03:00
5f3b3eb96d Fix typo in UPGRADE 2021-08-09 20:36:12 +03:00
e1fe04901a Adjust changelog 2021-08-09 20:13:42 +03:00
c8e4e0727a Fix #18674: Added more user-friendly exception messages for yii\i18n\Formatter 2021-08-09 10:26:10 +03:00
13f27e4d92 Fix #18817: Use paragonie/random_compat for random bytes and int generation 2021-08-09 10:25:36 +03:00
c5f8d7df20 Fix #18807: Fix replacing source whitespaces and optimize code of yii\helpers\BaseStringHelper::mb_ucwords() 2021-08-07 17:54:10 +03:00
f35f53eaf8 Preventing breaking profiling messages when flushing (#18800) 2021-08-07 17:06:25 +03:00
c905c10c93 Document that link() will not trigger events/behaviors (#18683) 2021-08-07 17:04:25 +03:00
7ebaaf0216 Fix #18789: Added JSONP support in yii\web\JsonParser::parse() 2021-08-07 15:31:35 +03:00
1474e2d61a Optimize yii\validators\ExistValidator
Optimize methods `valueExists()` and `checkTargetRelationExistence()`
2021-08-04 23:40:25 +03:00
be1b98b1df Fix #18756: Fix \yii\validators\ExistValidator::queryValueExists to validate against an array of unique values 2021-08-04 21:00:58 +03:00
1a057444ab Update URLs (#18802)
Composer doesn't support ircs protocol yet
2021-08-02 19:56:07 +03:00
fb7bc9fa5c Fix #18274: Fix yii\log\Logger to calculate profile timings no matter the value of the flush interval 2021-07-30 23:55:19 +03:00
9607d0eb52 Small fixes in yii\helpers\BaseStringHelper (#18795)
- Update and format PhpDoc's
- Format code to be more readable
- Replace similar code to `byteSubstr()`
2021-07-30 23:29:48 +03:00
86d7e95077 Minor enhancements for JsExpression (#18793)
- Fix class phpDoc.
- Convert expression to string in `__toString()`.
2021-07-30 12:46:57 +03:00
22c7cef869 Fix PhpDoc in yii\db\Query (#18752) 2021-07-29 02:19:01 +03:00
d9928455e3 Fix PhpDoc for yii\db\{QueryInterface,Query} (#18753) 2021-07-27 22:44:47 +03:00
25c0e6dcad Fix #18656: Added ability for yii serve's --router param to take an alias 2021-07-27 22:35:47 +03:00
fd7373f1c6 Make docs gender agnostics (#18781) 2021-07-25 15:44:56 +02:00
4276eb4955 Fix $value parameter types in yii\i18n\Formatter::normalizeDatetimeValue() 2021-07-08 10:30:32 +03:00
8cc9aeb2f0 Fix #18749: Fix yii\web\ErrorHandler::encodeHtml() to support strings with invalid UTF symbols 2021-07-06 23:34:21 +03:00
17742cb146 don't convert int to string if db type of column is numeric (#18741)
* write adequate test for issue #14663

* don't convert int to string if db type of column is numeric (#14663)

* fix bigint schema test for MySql >8.0.17 (#14663)

* Update CHANGELOG.md

* Update CHANGELOG.md

* update phpdoc [ci skip] (#14663)

* refactoring test case to make it clearer [ci skip] (#14663)

* check `int unsigned` in `QueryBuilderTest::testInsertInteger()` (#14663)

* Update Upgrade.md (#14663)

* fix `int unsigned` schema test for MySql >8.0.17 (#14663)

* fix `int unsigned` schema test for MySql <5.7 (#14663)

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
2021-07-06 20:49:01 +02:00
661f7318a1 Fixed tipfellery and inconsistencies regardin file translation for file validation messages in Croatian 2021-07-06 11:07:00 +02:00
725057c273 Fix #18734: Added yii\validators\EmailValidator::$enableLocalIDN 2021-07-06 01:55:02 +03:00
9d56179e9d Updated asUrl method to not introduce BC break (#18742) 2021-07-04 11:03:19 +02:00
2fe03cd82c Only log the $_SERVER information under YII_DEBUG (#18707)
* Only log the $_SERVER information under YII_DEBUG

Since $_SERVER can contain sensitive information that could leak in CI pipelines ideally it should happen under the YII_DEBUG flag only

* Added upgrade / changelog

* Corrected the upgrade information

* Update framework/UPGRADE.md

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

Co-authored-by: Bizley <pawel@positive.codes>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-07-03 18:55:06 +02:00
c43a168a31 Fix #18712: Added $scheme option to yii\i18n\Formatter::asUrl() 2021-07-02 11:26:24 +03:00
e83a86fd30 Fix #18648: Fix yii\web\Request to properly handle HTTP Basic Auth headers 2021-07-01 13:06:38 +03:00
db39f7c955 Json pretty print (#18726)
* Added pretty print support to Json helper

* Updated documentation for `yii\helpers\Json::$prettyPrint`

* Fixed line ending in \yiiunit\framework\helpers\JsonTest::testPrettyPrint for windows

* Added helper-json.md link in docs/guide/README.md

* Capitalized JSON in descriptions

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
2021-06-27 14:08:41 +02:00
3cc1201d7b Allow jQuery 3.6 to be installed
See https://blog.jquery.com/2021/03/02/jquery-3-6-0-released/
2021-06-22 11:34:44 +02:00
8a48339e35 Added example with hyphen in action ID
Also added link to guide on actions - don't know if you have a better way than providing a static URL... And maybe it should be moved to the class description?
2021-06-21 15:00:48 +02:00
dac40facec Merge branch 'master' into patch-1 2021-06-15 15:58:38 -03:00
e1e7ea37d5 use getTargetClass in function checkTargetAttributeExistence
This interesting change, to be able to change getTargetClass when necessary when extending this class.
2021-06-15 13:07:53 -03:00
fd1d4f75fe Merge branch 'master' into dicr-queryinterface-count 2021-06-15 15:19:07 +03:00