8978 Commits

Author SHA1 Message Date
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
ed8fbaa8b1 fix QueryInterface::count return type 2021-06-13 18:41:01 +05:00
330166e703 fix Exception\Throwable order 2021-06-13 18:07:43 +05:00
4a5b325160 Fix console error handler exception handling condition. Related to #18696
See https://github.com/yiisoft/yii2/pull/18696#discussion_r645877103
2021-06-05 23:29:10 +03:00
4d5fea7f6c Fix #18695: Added yii\web\Cookie::SAME_SITE_NONE constant 2021-06-05 14:06:17 +03:00
d5a428e001 Fix some code smells (#18696) 2021-06-05 13:37:45 +03:00
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>
2021-05-31 21:07:36 +03:00
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>
2021-05-30 19:26:15 +03:00
4cb2dfef1a Add more tests for helpers (#18675) 2021-05-25 10:28:57 +03:00
fff35b3796 Fix #18678: Fix yii\caching\DbCache to use configured cache table name instead of the default one in case of MSSQL varbinary column type detection 2021-05-24 14:53:04 +03:00
0cd68a330d Fix #18669: Changed visibility of yii\web\User::checkRedirectAcceptable() to public 2021-05-23 17:37:01 +03:00
82be8b61cf Replacing deprecated ::className() with ::class (#18671) 2021-05-22 23:14:54 +03:00
ddeb80cdf3 Fixed typo 2021-05-19 07:32:35 +02:00
2520e50c52 Fix #18653: Added method yii\helpers\BaseHtml::getInputIdByName() 2021-05-13 22:20:42 +03:00
7e323ba07c Fix #18650: Refactor framework/assets/yii.activeForm.js arrow function into traditional function for IE11 compatibility 2021-05-12 18:11:39 +03:00
66ff8309b9 Update CHANGELOG.md 2021-05-10 10:12:37 +02:00
c6441b750c Merge branch 'inflextor_fixes' of github.com:kjusupov/yii2 into inflextor_fixes 2021-05-10 16:10:22 +08:00
3019d4aa8e Merge branch 'inflextor_fixes' of github.com:kjusupov/yii2 into inflextor_fixes 2021-05-10 16:10:08 +08:00
e63be01f20 Update CHANGELOG.md 2021-05-10 10:09:36 +02:00
157043b3be Merge branch 'inflextor_fixes' of github.com:kjusupov/yii2 into inflextor_fixes 2021-05-10 16:05:39 +08:00
94a6b5d548 Added the CHANGELOG entry 2021-05-10 16:05:28 +08:00
c76e4dd7c7 Update BaseInflector.php 2021-05-09 00:59:33 +03:00
1be026eea1 Merge branch 'master' into inflextor_fixes 2021-05-07 15:40:59 +02:00
b41f4dc76f Remove capitalized versions of rules 2021-05-07 21:32:13 +08:00
9ce0d42daf Update BaseInflector.php 2021-05-07 01:36:02 +03:00
f422d419c2 prepare for next release 2021-05-06 14:44:58 +03:00
273cbab90e release version 2.0.42.1 2021-05-06 14:44:35 +03:00
7e970edb37 Merge branch 'master' into inflextor_fixes 2021-05-06 13:07:31 +03:00
52cf02d685 Fix #18634: Fix yii\db\BaseActiveRecord::unlink() and unlinkAll() to omit condition for on property when it doesn't exist 2021-05-06 13:04:40 +03:00
1646a135dc Merge branch 'master' into inflextor_fixes 2021-05-06 02:24:38 +03:00
3a58026359 prepare for next release 2021-05-06 00:08:58 +03:00
88a7a00458 release version 2.0.42 2021-05-06 00:08:29 +03:00
26656a2ed1 Minor cleanup 2021-05-05 19:29:51 +03:00
08a133e728 Update docs for #9718 (#18623)
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-05-05 12:47:38 +03:00
68a1c32400 Fix #18624: Fix yii\di\Container to properly resolve dependencies in case of PHP 8 union types 2021-05-04 16:19:24 +03:00
9c8f653554 Added 'software' and 'hardware' string to BaseInflector $specials. 2021-05-03 14:34:22 +08:00
209cf9b2de Improve docs 2021-04-30 09:55:46 +02:00
4f74d2a2db Add line to changelog 2021-04-29 19:47:01 +03:00
f14b2ccd89 remove duplicate code 2021-04-28 18:32:43 +03:00