117 Commits

Author SHA1 Message Date
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
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
d1d60e2d19 Fixes #14341: Fixed regression in error handling introduced by fixing #14264 2017-06-24 02:28:54 +03:00
ba0ab403b5 Added php-cs-fixer coding standards validation to Travis CI (#14100)
* php-cs-fixer: PSR2 rule.

* php-cs-fixer: PSR2 rule - fix views.

* Travis setup refactoring.

* Add php-cs-fixer to travis cs tests.

* Fix tests on hhvm-3.12

* improve travis config

* composer update

* revert composer update

* improve travis config

* Fix CS.

* Extract config to separate classes.

* Extract config to separate classes.

* Add file header.

* Force short array syntax.

* binary_operator_spaces fixer

* Fix broken tests

* cast_spaces fixer

* concat_space fixer

* dir_constant fixer

* ereg_to_preg fixer

* function_typehint_space fixer

* hash_to_slash_comment fixer

* is_null fixer

* linebreak_after_opening_tag fixer

* lowercase_cast fixer

* magic_constant_casing fixer

* modernize_types_casting fixer

* native_function_casing fixer

* new_with_braces fixer

* no_alias_functions fixer

* no_blank_lines_after_class_opening fixer

* no_blank_lines_after_phpdoc fixer

* no_empty_comment fixer

* no_empty_phpdoc fixer

* no_empty_statement fixer

* no_extra_consecutive_blank_lines fixer

* no_leading_import_slash fixer

* no_leading_namespace_whitespace fixer

* no_mixed_echo_print fixer

* no_multiline_whitespace_around_double_arrow fixer

* no_multiline_whitespace_before_semicolons fixer

* no_php4_constructor fixer

* no_short_bool_cast fixer

* no_singleline_whitespace_before_semicolons fixer

* no_spaces_around_offset fixer

* no_trailing_comma_in_list_call fixer

* no_trailing_comma_in_singleline_array fixer

* no_unneeded_control_parentheses fixer

* no_unused_imports fixer

* no_useless_return fixer

* no_whitespace_before_comma_in_array fixer

* no_whitespace_in_blank_line fixer

* not_operator_with_successor_space fixer

* object_operator_without_whitespace fixer

* ordered_imports fixer

* php_unit_construct fixer

* php_unit_dedicate_assert fixer

* php_unit_fqcn_annotation fixer

* phpdoc_indent fixer

* phpdoc_no_access fixer

* phpdoc_no_empty_return fixer

* phpdoc_no_package fixer

* phpdoc_no_useless_inheritdoc fixer

* Fix broken tests

* phpdoc_return_self_reference fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_to_comment fixer

* phpdoc_trim fixer

* phpdoc_var_without_name fixer

* psr4 fixer

* self_accessor fixer

* short_scalar_cast fixer

* single_blank_line_before_namespace fixer

* single_quote fixer

* standardize_not_equals fixer

* ternary_operator_spaces fixer

* trailing_comma_in_multiline_array fixer

* trim_array_spaces fixer

* protected_to_private fixer

* unary_operator_spaces fixer

* whitespace_after_comma_in_array fixer

* `parent::setRules()` -> `$this->setRules()`

* blank_line_after_opening_tag fixer

* Update finder config.

* Revert changes for YiiRequirementChecker.

* Fix array formatting.

* Add missing import.

* Fix CS for new code merged from master.

* Fix some indentation issues.
2017-06-12 12:25:45 +03:00
deea1829db Fixes #14264: Fixed a bug where yii\log\Logger::calculateTimings() was not accepting messages with array tokens 2017-06-08 12:57:43 +03:00
4b9e48b8dc improved docs: link term "path alias" to the guide 2017-06-02 10:45:20 +02:00
ddee256a1a Fixes #14133: Fixed bug when calculating timings with mixed nested profile begin and end in yii\log\Logger::calculateTimings() 2017-05-12 11:48:16 +03:00
5ed6910e1c Added support for cloning a db connection
improved fix #14020
fixes #13890

https://github.com/yiisoft/yii2/pull/14020/files#r115185865

close #14121
2017-05-10 09:46:10 +02:00
5695b869a9 Fixes #13890: DbTarget log transaction bug 2017-05-04 20:30:38 +02:00
c19b2f7dc8 release version 2.0.11 2017-02-01 17:46:29 +01:00
cc37cd626f Fixes #12599: Fixed MSSQL fail to work with nvarbinary. Enhanced SQL scripts compatibility with older versions 2017-01-23 10:31:52 +03:00
3ea671454c Fixes #12133: Fixed getDbTargets() function in yii\log\migrations\m141106_185632_log_init that would create a log table correctly 2017-01-15 21:53:36 +03:00
338e5967cb Added Logging of memory usage
calculateTimings added options: `memory`, `memoryDiff` memory_get_usage only the used memory is reported.

close #13268
2017-01-02 02:01:49 +01:00
f23dc5aee9 Add attribute to set the openlog $option attribute for SyslogTarget
Fixes issue #13074
close #13075
2016-11-29 00:00:24 +01:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
09b1fd47e0 Fixed yii\log\FileTarget does not apply fileMode for rotated via copy files 2016-08-30 13:41:54 +03:00
2d9b659777 Fixes #12296: Added value validation to yii\log\Target::setLevels() 2016-08-25 20:47:03 +03:00
51d9c288cb Added missing 'LEVEL_PROFILE' (#12068) 2016-08-03 11:11:50 +03:00
5189693560 Added 'LEVEL_PROFILE' to the map of levels (#12045) 2016-07-29 16:25:03 +03:00
217d50e4ff improved PHPdoc and @since annotations 2016-07-11 12:58:43 +02:00
4fd4ac04b1 Minor adjustments for #11462 2016-07-03 02:05:13 +03:00
30bb9bd7c8 Fixes #11462: Added support of filtering rules to yii\log\Target::$logVar, added \yii\helpers\BaseArrayHelper::filter() method 2016-07-03 01:56:05 +03:00
7cea46bcb4 Changed SQLite fix #11652 according to https://github.com/yiisoft/yii2/pull/11653#issuecomment-224016289 2016-06-06 19:57:42 +03:00
0a60466729 Fixes #11527: Fixed bigPrimaryKey() for SQLite 2016-06-06 19:33:22 +03:00
731769241b release version 2.0.8 2016-04-28 16:50:20 +02:00
22503ebe97 allow setting custom logger in Dispatcher via config
fixes #11056
2016-04-22 10:53:59 +02:00
95a7631e4f fixes #11333 avoid serializing php7 errors (#11335)
fixes #11333
2016-04-13 05:52:48 +02:00
1f7134634b Use static:: instead of $this for static method calls 2016-02-16 14:06:23 +03:00
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
540883e179 Update syntax migration 2015-10-05 06:02:11 +02:00