162 Commits

Author SHA1 Message Date
c82da8dc82 Add visibility for all class elements (#20557) 2025-10-02 01:27:23 +03:00
53256fdd24 Fix #20513: Fix code examples in PHPDoc 2025-09-06 00:22:56 +03:00
f914cda51e Remove invalid @property annotations and fix property descriptions (#20510) 2025-09-05 00:33:39 +03:00
8b50a4942a Fix @var tags syntax in framework folder (#20392) 2025-06-03 19:57:08 +03:00
f94017ce4c Fix #20306: Add new yii\helpers\ArrayHelper::flatten() method 2025-01-06 17:53:58 +03:00
3fc7e71c67 Fix #20295: Add an ability to have wildcards in yii\log\Target::$maskVars array 2025-01-01 22:43:47 +03:00
52ff9dbd48 Prefer classic if construct #20294 2024-12-09 17:59:51 +06:00
b3c23da52f Append additional (error) message only if error_get_last() returns non-null value #20294 2024-12-08 23:34:05 +06:00
3fa2d61e54 Fix #20175: Fix bad result for pagination when used with GridView 2024-06-08 10:29:40 +03:00
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03: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
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
7d2e2b9e70 Fix #16208: Fix yii\log\FileTarget to not export empty messages 2023-07-24 10:01:24 +03:00
123802e4cb Fix #19259: Fix yii\log\FileTarget locking and always rotate files only by copy 2022-08-17 00:24:50 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
a87c02c712 Fix more types (#19333)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect

* Null types for Validator

* Several more null types

* One more

* Make AccessRule::$allow always a boolean

It doesn't have any special null handling, so it's safe to default to false

* Validator::$skipOnEmpty is always a boolean

* Catch all throwable from Widget::widget()

* Don't limit $previous args to \Exception

The actual \Exception allows $previous to be any throwable in PHP 7+

* Add Throwable catch block to Instance::get()

* Throwable cleanup

Comment changes only.

- Document \Throwable instead of \Exception wherever appropriate
- Removed redundant exception/error classes when \Throwable is referenced

* Yii::setlogger() accepts null

* ArrayHelper::removeValue() can remove any type of value

* Change default $allow value to false
2022-04-03 11:20:21 +02:00
4628b91e73 Fix types (#19332)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect
2022-03-30 18:40:10 +02:00
655786b7ed release version 2.0.44 2021-12-30 10:50:56 +03:00
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
2021-10-19 14:50:26 +02:00
e3028c524d Fix #18899: Replace usages of strpos with strncmp and remove redundant usage of array_merge and array_values 2021-09-28 11:06:46 +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
f35f53eaf8 Preventing breaking profiling messages when flushing (#18800) 2021-08-07 17:06:25 +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
330166e703 fix Exception\Throwable order 2021-06-13 18:07:43 +05: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
4e2045c040 release version 2.0.41 2021-03-04 00:51:35 +03:00
be6fa87642 Fix #18483: Add yii\log\Logger::$dbEventNames that allows specifying event names used to get statistical results (profiling) of DB queries 2021-01-14 19:15:09 +03:00
ccb14ff667 release version 2.0.39 2020-11-10 13:58:35 +03:00
658c822f30 Fix #18120: Include path to the log file into error message if FileTarget::export fails 2020-06-19 11:35:14 +03:00
f69670fb65 Fix #17798: Avoid creating folder for stream log targets in FileTarget 2020-02-17 15:53:03 +03:00
48c08d093c Fix #17749: Dispatcher fix if target crashed in PHP 7.0+ 2019-12-26 16:00:53 +03:00
14a7198434 Fix #17485: Revert "Fix #17469: Fixed updating Yii logger instance when setting new logger via configuration"
This reverts commit 46136b09e73163c0be858c825434828b770d09e5.
2019-08-13 16:06:48 +03:00
46136b09e7 Fix #17469: Fixed updating Yii logger instance when setting new logger via configuration 2019-07-30 17:10:17 +03:00
3275f97684 Fixes #16565: Added missing parts of the context message in \yii\log\Target::collect 2019-06-13 16:37:46 +03:00
ffe38a920f release version 2.0.17 2019-03-23 00:26:26 +03:00
bdb7c64910 Update to https protocol for php.net links (#17168) [skip ci]
* Updated php.net link for some MemCache properties [skip ci]

* Changed protocol to https for links to php.net in comments

* Changed protocol to https for links to php.net in code

* Changed www.php.net (http) to secure.php.net (https) in comments

* Changed www.php.net (http) to secure.php.net (https) in code

* Changed protocol to https for links to php.net in UPGRADE.md

* Changed protocol to https for links to pecl.php.net in comments

* Changed us.php.net to secure.php.net (https) in comments

* Changed protocol to https for links to php.net in docs

* Changed www.php.net (http) to secure.php.net (https) in docs

* Changed protocol to https for links to pecl.php.net in docs

* Changed ru/jp.php.net to secure.php.net (https) in docs

Don't sure about russian guide: is this links meant to be for guide on russian, or not?
2019-02-28 13:09:27 +03:00
b867cb7fd3 Fix comment space (#17115) [skip ci] 2019-02-08 12:47:39 +03:00
ed64d65886 release version 2.0.16 2019-01-31 00:54:16 +01:00
e4eaccc14d Merge branch 'security' 2019-01-28 22:50:38 +02:00
5349132043 Use sprintf() in Target::getTime() (#16883)
* Use `sprintf()` in `Target::getTime()`.

* Changelog line [skip ci].
2018-11-28 08:22:04 +01:00
826a0fecdd Fixed excess logging of sensitive information in \yii\log\Target 2018-11-23 12:55:16 +02:00
25e6cd45c5 Fixes #16752: Fix rotating files under Windows 2018-09-30 20:23:27 +03:00
1a74b3d4f8 [minor] SCA with Php Inspections (EA Ultimate) (#15871)
* Php Inspections (EA Ultimate): use type casting where applicable

* Php Inspections (EA Ultimate): use constants where applicable

* Php Inspections (EA Ultimate): CS

* Php Inspections (EA Ultimate): address some of one-time used variables

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): revert a constant usage

* Php Inspections (EA Ultimate): revert sequential assignments

* Php Inspections (EA Ultimate): build is green again

* Php Inspections (EA Ultimate): revert array_merge tweaks

* Php Inspections (EA Ultimate): revert BC-incompatible one-time used variable tweak

* Update description [skip ci]

* Php Inspections (EA Ultimate): CS
2018-03-12 01:37:19 +03:00
22832b7c49 release version 2.0.14 2018-02-19 00:27:09 +02:00
bf19882a23 is_dir check is removed 2018-02-18 16:22:45 +03:00
484d2a63ec is_dir check is removed 2018-02-18 14:48:06 +03:00