101 Commits

Author SHA1 Message Date
0d0f77529a Fix #20231: Fix regression introduced in #20167 in yii\validators\FileValidator 2024-07-26 19:06:32 +03:00
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
e92466bbba Fix #19855: Fixed yii\validators\FileValidator to not limit some of its rules only to array attribute 2024-05-30 14:36:12 +03:00
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03: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
e234e48f3c Fix #19368: Fix PHP 8.1 error when $fileMimeType is null in yii\validators\FileValidator::validateMimeType() 2022-04-27 11:01:01 +03: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
1271bc419f Fix #19041: Fix PHP 8.1 issues 2022-01-14 13:52:01 +03: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
ccb14ff667 release version 2.0.39 2020-11-10 13:58:35 +03:00
f212925242 Fix #18239: Fix support of no-extension files for FileValidator::validateExtension() 2020-08-19 20:32:15 +03:00
f944e1f039 Fix #18094: Support for composite file extension validation 2020-07-03 19:06:49 +03:00
5e38f47275 Fix #16305: Fix FileValidator mime-type validation failure because of case sensitivity 2019-08-27 18:59: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
22832b7c49 release version 2.0.14 2018-02-19 00:27:09 +02:00
71c541773f PHPDoc fix 2018-01-23 13:17:25 +02:00
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
72b69e359a Fixes #15417: Added yii\validators\FileValidator::$minFiles 2018-01-08 02:12:27 +04:00
13cd7d7ee0 Fixes #6588: Fixed changing array keys after validation of multiple files in yii\validators\FileValidator 2017-11-01 12:26:25 +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
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
Sam
06967f9018 Fixes #13254: Core validators no longer require Yii::$app to be set 2017-03-14 15:37:54 +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
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
191f2a4943 fixed phpdoc type names 2016-02-25 20:24:32 +01:00
66c6268e5f FileValidator: updated guide-ru,en, PHP; updated tests 2016-02-24 09:05:29 +02:00
7aef671872 Refactored FileHelper::validateMimeType, js validaton, PHPDocs 2016-02-24 00:40:34 +02:00
a4c68b5278 #5469 added mimetype mask validation feature 2016-02-24 00:40:34 +02:00
f0c666cd6f Update FileValidator phpDoc: see link added to maxSize 2016-02-15 15:14:39 +03:00
07c3403f27 Update FileValidator phpDoc: see link added to maxSize 2016-02-15 15:12:36 +03:00
e23f47f49a Update phpDoc maxSize of FileValidator 2016-02-15 14:51:39 +03:00
f620f4de90 phpdoc fixes 2016-02-07 19:48:13 +01:00
e41c2e3946 validators PHPdoc 2016-02-07 19:16:31 +01:00
9bd0810bce FileValidator - fixed fix for error message on UPLOAD_ERR_FORM_SIZE (7f65704) 2016-01-25 21:36:11 +02:00
7f657047da FileValidator - fixed error message on UPLOAD_ERR_FORM_SIZE
Closes #10660
2016-01-25 20:14:51 +02:00
8298588d5b Separated limit and formattedLimit for translations in FileValidator 2015-12-19 22:08:52 +02:00
b83803460b Fixes #8466. FileValidator: units in tooBig and tooSmall error messsages are formated 2015-12-19 21:38:29 +02:00
898ffa57c4 FileValidator - updated PHPDoc 2015-12-06 07:12:20 +02:00
d5eff682a0 Merge branch 'patch-1' of https://github.com/PowerGamer1/yii2 into PowerGamer1-patch-1 2015-12-05 21:22:24 +02:00
a6e1ba2cf6 Fixed mb_ functions calls to use UTF-8 or app charset 2015-11-17 09:02:22 +02:00
a6fc02345e FileValidator->getSizeLimit: check also php's post_max_size
- return the lowerest of `post_max_size` or `upload_max_filesize`
- Raised warning for misconfigured PHP

close #8373
2015-08-02 23:37:46 +02:00
6d9fe671de various code style and whitespace adjustments 2015-08-02 00:27:19 +02:00
4f25734509 Update FileValidator.php
Implementation of https://github.com/yiisoft/yii2/issues/8995
2015-07-03 20:36:43 +03:00