741 Commits

Author SHA1 Message Date
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
d7be512fa0 Fixes #10186: Use native hash_equals in yii\base\Security::compareString() if available, throw exception if non-strings are compared 2018-01-18 01:58:32 +03:00
f1277d6d21 Fixes #6844: yii\base\ArrayableTrait::toArray() now allows recursive $fields and $expand 2018-01-15 18:15:32 +03:00
a559b9fa76 Fixes #14903: Fixed route with extra dashes is executed controller while it should not 2018-01-09 18:59:07 +04:00
533f9edd35 generatePasswordHash() documentation example syntax error fixed 2018-01-05 17:47:20 +05:30
e813c20124 Fixes #3250: Added support for events partial wildcard matching 2017-12-24 00:36:54 +03:00
921310fd69 condition optimized 2017-12-23 15:33:42 +02:00
c2cf1f03ca Event wildcards added to Event 2017-12-22 17:32:03 +02:00
072ef77ea5 Prevent source path disclosure when form is represented by an anonymous class 2017-12-22 12:21:32 +02:00
8fccf7f6ca Event wildcards added 2017-12-20 17:44:03 +02:00
1b8da6d951 Add StringHelper::matchWildcard() (#15389)
`StringHelper::matchWildcard()` added
2017-12-20 16:16:25 +02:00
f11f818b18 Fixes #7988: Added \yii\helpers\Console::errorSummary() and \yii\helpers\Json::errorSummary() 2017-12-14 10:59:53 +03:00
713529e042 Fixes #8752: Allow specify $attributeNames as a string for yii\base\Model validate() method 2017-12-13 23:00:36 +03:00
Sam
05f197825b Fixes #15332: Always check for availability of openssl_pseudo_random_bytes, even if LibreSSL is available 2017-12-12 11:25:12 +03: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
22d453faac Fixes #14134: Fixed multiple validateAttribute() calls when scenarios() returns duplicate attributes 2017-10-07 19:40:06 +02:00
f1cb76bc76 Fixes #14882: Corrected action phpdoc to fix IDE hints in console commands [skip ci] 2017-09-29 22:11:47 +03:00
Sam
04281cba8c Fixes #14793: Module ->get() and ->has() methods now check parent modules and fall back to application if nothing found 2017-09-13 01:32:57 +03:00
8861aab2ac more details in upgrade notes 2017-09-08 17:10:16 +02:00
d68789a195 Fixes #13779, fixes #5786
- #13779: Fixed `yii\db\ActiveRecord::joinWith()` unable to use relation defined via attached behavior.
- #5786: Allowed to use custom constructors in ActiveRecord-based classes.
2017-08-29 15:13:28 +03:00
c1b5240888 Added PHPDoc @throws to yii\base\View::renderPhpFile() [skip ci] 2017-08-28 02:32:27 +03:00
Sam
4081a4b203 Fixes #14184: Module service locator now falls back to its parent module service locator in case component isn't found 2017-08-23 00:38:39 +03: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
393fc2744a Added yii\base\Object for backwards compatibility
fixes #7936
close #14478
2017-07-19 10:53:33 +02:00
69673c0c94 Rename Object -> BaseObject for PHP 7.2 compatibility
issue #7936
2017-07-19 10:51:46 +02:00
03d53b785d Fixes #14449: Fix PHP 7.2 compatibility bugs and add explicit closure support in yii\base\Application 2017-07-14 12:23:03 +03:00
a50d9d8e3e Enable include rule in php-cs-fixer (#14418) 2017-07-10 13:19:57 +03:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +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
cb53b2feec Fixes #14081: Added yii\caching\CacheInterface to make custom cache extensions adoption easier 2017-06-11 19:18:33 +03:00
f6b54e1ac8 Fixes #14089: Added tests for yii\base\Theme 2017-06-11 17:38:23 +03:00
4b9e48b8dc improved docs: link term "path alias" to the guide 2017-06-02 10:45:20 +02:00
0beb59305c Fixes #13058: Fixed caught exception thrown during view file rendering produces wrong output 2017-06-02 01:30:21 +03:00
6301daecf7 reverted wrong phpdoc change from #13905 2017-04-03 14:27:04 +02:00
950e895fe0 Fix phpDocumentor annotations (#13905) [skip ci] 2017-04-02 21:49:09 +03:00
8ae207c3a1 Fixes #13837: Refactored masking of CSRF tokens 2017-04-02 02:10:16 +03:00
ea75068a92 Fixes #13813: Fixed PHP 7 compatibiltiy by adding support for passing instances of Error to the yii\web\Response::setStatusCodeByException() 2017-03-23 01:20:42 +03:00
29b5f33722 Adjusted conditions nesting in yii\base\Event 2017-03-13 18:30:09 +03:00
953a0bba2b Fixes #13650: Improved yii\base\Security::hkdf() to take advantage of native hash_hkdf() implementation in PHP >= 7.1.2 2017-02-27 13:32:48 +03:00
2de18cf9a5 Fixes #13087: Fixed getting active validators for safe attribute 2017-02-22 17:06:19 +03:00
953c4a8e5a Fixes #13407: Added URL-safe base64 encode/decode methods to StringHelper 2017-02-22 16:54:27 +03:00
323568c2e9 Remove trailing spaces from sources and tests (#13621) [skip ci] 2017-02-19 17:34:22 +03:00
4e9d903fed Fixes #11404: yii\base\Model::loadMultiple() returns true even if yii\base\Model::load() returns false 2017-02-15 01:33:23 +03:00
25b78aa615 Fixes #13508: Fixed duplicate attachment of behavior BC break
Fixes BC break introduced in
954c771fdb (diff-d45d5e14cbb9739c2e1c63b53ba5e363L669)
2017-02-04 15:47:04 +03:00
c19b2f7dc8 release version 2.0.11 2017-02-01 17:46:29 +01:00
5609e918de Fixed some malformed @var tags (#13468) [skip ci] 2017-01-30 11:42:52 +03:00
920877c815 Fixed WidgetEvent construction 2017-01-28 11:55:24 +03:00