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
1b14628dbf
Directory creation is moved to export() method
2018-02-18 12:57:09 +03:00
8b74e29663
Fixes #14296 : Fixed log targets to throw exception in case log can not be properly exported
2018-02-04 01:20:09 +07:00
65f6b59b35
@inheritdoc
notation changed
2018-01-23 13:11:24 +02:00
6b0be47e0f
Fixes #14711 : Fixed yii\web\ErrorHandler
displaying exception message in non-debug mode
2018-01-22 11:41:24 +03:00
847e224d6f
Fixed #14612 : Added note about session's logVars [skip ci]
2018-01-21 22:47:44 +03:00
9a16f8fecc
Fixes #8983 : Only truncate the original log file for rotation
2017-11-30 23:23:21 +03:00
b354b26d03
Fixes #15081 : Fixed "Undefined offset: 1" in log Target
2017-11-03 21:51:49 +03:00
2745a16245
fix phpdoc in log\Target
2017-11-03 01:11:09 +01:00
2d672b6722
release version 2.0.13
2017-11-03 01:09:29 +03:00
fb23b0d0ea
Code style fixes
2017-11-01 02:43:02 +03:00
93bbf5b39d
Fixes #15015 : Added StringHelper::floatToString()
to savely cast float values independent of the locale, also fixes some places in the framework that use it now
2017-10-27 11:41:45 +03:00
d49ec7b8be
Fixes #14633 : Add miliseconds to log time in \yii\log\Target
2017-10-18 17:53:10 +03:00
9d854c0f25
improved docs for #14273
2017-09-06 09:32:50 +02:00
9b01ca275f
Fixes #14273 : yii\log\Target::$enabled now supports callable value ( #14539 )
...
* Fixes #14273 : yii\log\Target:: now supports callable value
* added empty line in changelog [skip ci]
* getter and setter
* Update Target.php
2017-09-01 23:49:53 +02:00
5a8c3d537b
Enable phpdoc_summary
rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00