Long TRAN
6a36fa82c7
Fix #19047 , fix #19118 : Fix deprecated preg_match() passing null parameters #2 in db\mysql\Schema.php
3 years ago
Long TRAN
cf1600411c
Fix #19204 : Support numbers in Inflector::camel2words
3 years ago
Bizley
60c91eb433
Fix BC introduced in #19188 ( #19194 )
3 years ago
Bizley
dbb157fd32
Fix #19187 : Fix `yii\filters\PageCache` to store original headers names instead of normalized ones
3 years ago
rhertogh
e691713ed7
Fix #19171 : Added `$pagination` and `$sort` to `\yii\rest\IndexAction` for easy configuration
3 years ago
stevekr
67ea4cf968
Fix #19148 : Fix undefined array key errors in `yii\db\ActiveRelationTrait`
3 years ago
Alexander Makarov
1271bc419f
Fix #19041 : Fix PHP 8.1 issues
3 years ago
ntesic
e68b7ae162
Fix #19138 : Allow digits in language code
...
Co-authored-by: ntesic <nikolatesic@gmail.com>
3 years ago
Bizley
12763a146e
Fix #19067 : Fix constant session regeneration ( #19113 )
...
* Fix constant session regeneration
* Add tests for session ID, always regenerating session ID for switching identity
3 years ago
Anton
6fb16bc30f
Fix #19098 : Add `yii\helper\BaseHtml::$normalizeClassAttribute` to fix duplicate classes
3 years ago
irice
02fe7f42c8
Fix #18660 : Check name if backslash appears
3 years ago
Anton
6067608321
Fix #19005 : Add `yii\base\Module::setControllerPath()`
3 years ago
Anton
766cf701e5
Fix #19031 : Fix displaying console help for parameters with declared types
3 years ago
Papp Péter
0d899fa18b
Fix #19030 : Add DI container usage to `yii\base\Widget::end()`
3 years ago
Alexey Rogachev
4a8c72f0c4
Normalize todos ( #19045 )
3 years ago
AnkIF
6aa5bd8d46
Fix #18967 : Use proper attribute names for tabular data in `yii\widgets\ActiveField::addAriaAttributes()`
3 years ago
Anton
c8d027f649
Fix #18993 : Load defaults by `attributes()` in `yii\db\ActiveRecord::loadDefaultValues()`
3 years ago
Anton
03235e6c12
Fix #18988 : Fix default value of `yii\console\controllers\MessageController::$translator`
3 years ago
Aleksandr Bogatikov
d27fb96409
StringHelper::dirname() fixed for trailing slash ( #18965 )
...
* StringHelper::dirname() fixed for trailing slash
* StringHelper::dirname() fix for PHP <7 versions
* Update CHANGELOG.md
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
3 years ago
Bizley
0041f034fd
[doc] Update PHP doc links ( #18957 )
...
* Replace https://secure.php.net with https://www.php.net
* Replace http://www.php.net with https://www.php.net
3 years ago
Michaël Arnauts
1d7f9d8d2d
Fix #18898 : Fix `yii\helpers\Inflector::camel2words()` to work with words ending with 0
3 years ago
rhertogh
f3956a4eec
Fix header collection from array ( #18883 )
...
* Fixed HeaderCollection::fromArray() key case
* Added CHANGELOG.md line for #18883 (Fixed HeaderCollection::fromArray() key case)
3 years ago
Leo
9ed87a0ad6
Fix #18858 : Reduce memory usage in `yii\base\View::afterRender` method
3 years ago
rhertogh
59eb9a3395
Fixed ArrayHelper::toArray for DateTime ( #18880 )
...
* Fixed ArrayHelper::toArray() for DateTime object
* Updated README.md for #18880 (Fixed ArrayHelper::toArray() for DateTime object)
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
3 years ago
Anton
ffe7904d80
Minor tests cleanup ( #18811 )
3 years ago
Anton
ac373c06fe
Fix #18845 : Fix duplicating `id` in `MigrateController::addDefaultPrimaryKey()`
3 years ago
Jaak Tamre
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()`
3 years ago
Anton
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>
3 years ago
Bizley
44388e2cf9
Revert changes in dispatcher 18841 ( #18843 )
3 years ago
lexizz
383241f65c
Fix #18840 : Fix `yii2/log/Logger` to set logger globally
3 years ago
Brandon Kelly
63e93ba243
Fix #18832 - Inflector::camel2words() adding extra spaces ( #18833 )
3 years ago
Andrew
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>
3 years ago
Michael Härtl
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>
3 years ago
Bizley
c8e4e0727a
Fix #18674 : Added more user-friendly exception messages for `yii\i18n\Formatter`
3 years ago
Alexander Makarov
13f27e4d92
Fix #18817 : Use `paragonie/random_compat` for random bytes and int generation
3 years ago
Anton
c5f8d7df20
Fix #18807 : Fix replacing source whitespaces and optimize code of `yii\helpers\BaseStringHelper::mb_ucwords()`
3 years ago
Bizley
f35f53eaf8
Preventing breaking profiling messages when flushing ( #18800 )
3 years ago
Anton
7ebaaf0216
Fix #18789 : Added JSONP support in `yii\web\JsonParser::parse()`
3 years ago
DrDeath72
be1b98b1df
Fix #18756 : Fix `\yii\validators\ExistValidator::queryValueExists` to validate against an array of unique values
3 years ago
Bizley
fb7bc9fa5c
Fix #18274 : Fix `yii\log\Logger` to calculate profile timings no matter the value of the flush interval
3 years ago
Sergei Predvoditelev
8cc9aeb2f0
Fix #18749 : Fix `yii\web\ErrorHandler::encodeHtml()` to support strings with invalid UTF symbols
3 years ago
egorrishe
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>
3 years ago
Bizley
9d56179e9d
Updated asUrl method to not introduce BC break ( #18742 )
3 years ago
Bizley
c43a168a31
Fix #18712 : Added `$scheme` option to `yii\i18n\Formatter::asUrl()`
3 years ago
egorrishe
87849c640f
Fix #18737 : Fix SchemaTest::testColumnSchema() for MySql <5.7
3 years ago
olegbaturin
e83a86fd30
Fix #18648 : Fix `yii\web\Request` to properly handle HTTP Basic Auth headers
3 years ago
rhertogh
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>
3 years ago
Bizley
7966fe47e6
Scrutinizer fixes ( #18685 )
...
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/filters/AccessRule.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/helpers/BaseFileHelper.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Application.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Module.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/MultipartFormDataParser.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/Session.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Controller.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Added vardocs, and small refactor
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/conditions/InConditionBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/Connection.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/mssql/QueryBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/log/Logger.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/BaseMigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Adding space between type
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/CacheController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/FixtureController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
3 years ago
rhertogh
31ca0fcb6f
Fix #18676 : Added method `yii\helpers\BaseFileHelper::changeOwnership()` and properties `newFileMode`/`newFileOwnership` in `yii\console\controllers\BaseMigrateController`
...
Co-authored-by: Bizley <pawel@positive.codes>
3 years ago
Bizley
4cb2dfef1a
Add more tests for helpers ( #18675 )
3 years ago