73 Commits

Author SHA1 Message Date
ed9de17357 Sync to master branch. (#20401) 2025-06-09 12:03:50 -04: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
0f21d51648 update links (#19523) 2022-08-27 10:02:08 +02:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
59f69fc9cd Fix #19462: Fix validator client options to encode HTML tags 2022-07-29 13:15:54 +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
655786b7ed release version 2.0.44 2021-12-30 10:50:56 +03:00
f2caf02164 Fix #18904: Improve Captcha client-side validation 2021-09-28 09:55:47 +03:00
13f27e4d92 Fix #18817: Use paragonie/random_compat for random bytes and int generation 2021-08-09 10:25:36 +03:00
ccb14ff667 release version 2.0.39 2020-11-10 13:58:35 +03:00
f10cb6aeee SCA with Php Inspections (EA Ultimate) 2018-02-27 19:13:22 +01:00
f9b03dfd42 SCA with Php Inspections (EA Ultimate) 2018-02-27 19:06:27 +01:00
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
34cc2dee8f Fixes #14294: Added InputWidget::renderInputHtml() to move behavior described in InputWidget class docs to the class itself
This reverts commit b0162d3a48150be2394dbd30147b3019a433b3a2.

Closes #14294
2017-09-09 14:34:01 +03:00
b0162d3a48 Revert "Fixes #14294: Added InputWidget::renderInput() to move behavior described in InputWidget class docs to the class itself"
This reverts commit a5b393a3c101bebeb0c60aac4e11d5a7c6dd8244.

See https://github.com/yiisoft/yii2/pull/14441#issuecomment-315127527 for reasons
2017-07-13 21:40:29 +03:00
a5b393a3c1 Fixes #14294: Added InputWidget::renderInput() to move behavior described in InputWidget class docs to the class itself 2017-07-13 17:04:43 +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
4b9e48b8dc improved docs: link term "path alias" to the guide 2017-06-02 10:45:20 +02:00
6da1ec6fb2 Fixes #13845: mt_rand() is not used instead of rand() in yii\captcha\CaptchaAction + minor code improvements 2017-03-24 13:50:13 +03:00
f5beaf3edf Make validator getClientOptions public
This allows implementing custom client-side validation
without extending every validator.

Fixes #11163
close #13145
2016-12-08 01:30:36 +01:00
76e253e140 yii\validators\Validator - added separate methods for client-side validation options
Closes #11163
2016-12-05 22:33:49 +02:00
7a3a342127 Fix errors reported by apidoc extension. (#12986) 2016-11-13 14:51:21 +01:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
beaf63ec41 Fix documentation grammar (#12728) [skip ci] 2016-10-12 16:21:55 +03:00
494842636e 📖 Fixed client-side and server-side grammar in all files 2016-09-08 10:16:02 +03:00
9d327baa8b coding style fixes 2016-05-26 11:19:32 +02:00
5e1e42839f Fixes #11188: Fixed wrong index usage in CaptchaAction when calling imagefilledrectangle 2016-03-25 23:28:23 +03:00
6987fb5d54 Fixed Captcha client side validation after image refresh, when controller is under module
Closes #10910
2016-03-06 11:33:50 +02:00
ef050338cc Fixed Imagick call in Captcha 2016-02-25 21:45:01 +03:00
5c4e2d4372 Removed unnecessary parentheses 2016-02-16 14:08:43 +03:00
1f7134634b Use static:: instead of $this for static method calls 2016-02-16 14:06:23 +03:00
090a9875d9 Fixed CaptchaValidator to pass correct hashKey
Fixed `yii\validators\CaptchaValidator` passed incorrect hashKey to JS validator when `captchaAction` begins with `/`

Closes #10385
2015-12-15 12:45:00 +02:00
2441e95a96 Update CaptchaAction.php
added missing version annotation
2015-11-23 15:45:31 +01:00
742f106ec0 Fixes #8284: Added \yii\captcha\CaptchaAction::$imageLibrary property allowing to set image rendering library 2015-11-23 13:40:38 +03:00
d22a689fac Fixes #9984: Fixed wrong captcha color in case Imagick is used 2015-10-21 17:10:35 +03:00
3f4fcbe569 Removed accidentally typed char 2015-10-10 20:53:23 +03:00
fb2fa8634d Fixes #9877 2015-10-10 18:17:27 +03:00
7a08b8d9d9 Use ++ instead of x = x + 1 2015-10-10 01:05:56 +03:00
4ecafe653c More compact number operations 2015-10-10 00:41:54 +03:00
7a32c63a5c Update yii\captcha\Captcha.php
phpDoc microfix
2015-06-10 00:23:55 +03:00
78d3a856d3 Added Json::htmlEncode() to support safer JSON data encoding in HTML code 2015-05-09 23:38:17 -04:00
21b87b67af Fixes #7218: yii\captcha\CaptchaAction should send response in JSON format 2015-02-09 20:33:05 -05:00
40c232df92 enhanced widget documentation 2015-02-08 18:02:31 +01:00
48ec791e4a Fixes #5587: json_encode is now used with JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE where it makes sense, also it is now default for Json::encode() 2014-10-19 18:50:46 +04:00
9302786944 Fixes #5598: added ImageMagick with PNG and GD with FreeType checks to requirements of basic and advanced applications, used better Captcha exception message 2014-10-19 01:23:46 +04:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
dd5a16aa4a Fixes #4127: CaptchaValidator clientside error message wasn't formed properly 2014-06-30 20:35:49 +04:00
ba690d5451 Imagick image can not be converted to string on HHVM
made it consistent with the GD function.

See also https://github.com/yiisoft/yii/pull/3406
2014-06-23 13:46:35 +02:00