Commit Graph

259 Commits

Author SHA1 Message Date
Evgeniy Moiseenko
a8bfe8bbe6 Fixes #14230: Fixed itemsOptions ignored in checkBoxList 2018-09-19 17:39:21 +03:00
Evgeniy Moiseenko
3eba4ea69a Fixes #16680: Fixed ActiveField 'text' input with maxlength 2018-09-13 12:18:18 +03:00
Alexey
bf5476f253 Fixes #15889: Fixed override yii\helpers\Html::setActivePlaceholder 2018-07-29 00:07:09 +08:00
Thoulah
a32cfcc8ef Fixes #16266: Fixed yii\helpers\BaseStringHelper where explode would not allow 0 as trim string 2018-05-13 01:14:39 +03:00
SilverFire - Dmitry Naumenko
3d96a45f6b Fixed BC breaking change in Inflector
Fixes #16239
2018-05-08 16:39:55 +03:00
SilverFire - Dmitry Naumenko
629a33fd0e Made Inclector unicode-safe 2018-05-01 12:32:16 +03:00
SilverFire - Dmitry Naumenko
b9aa0001b6 Fixed yii\helpers\Inflector::camel2words() to work with UTF-8 2018-04-29 13:13:56 +03:00
Carsten Brandt
314b66827b added test to verify #15298 2018-04-10 09:40:15 +02:00
Pavel Ivanov
4e940a2772 Fix travis builds for 'nightly' php (#15992)
1) Fixed unexpected exceptions (PHP nightly): https://travis-ci.org/yiisoft/yii2/jobs/358866164#L789
2) Fixed session issues (PHP hhvm): https://travis-ci.org/yiisoft/yii2/jobs/358866162#L841
3) Excluded unicode characters check from 'nightly' PHP version
4) Also deprecated InvalidParamException replaced with InvalidArgumentException
2018-03-27 19:22:15 +03:00
SilverFire - Dmitry Naumenko
b3f54d1065 Simplified code, enhanced PHPDocs 2018-03-10 10:19:07 +02:00
Fabrizio
52263077c0 Bug #15858: Fixed array undefined offset error calling Html::errorSummary with same error messages from different model attributes. (FabrizioCaldarelli) 2018-03-08 23:24:41 +01:00
SilverFire - Dmitry Naumenko
fcea028cf1 Disabled UrlTest for HHVM in Travis
Probably, this change will fix random exception during HHVM build
on travis:

ps_files_cleanup_dir: opendir(/var/lib/hhvm/sessions) failed: Permission denied (13)
2018-03-05 16:25:59 +02:00
Alexander Makarov
0ed15c6496 Added test for FileHelper::findDirectories except option 2018-02-24 02:32:49 +03:00
edwards-sj
1c473325ac Fixes #15742: Updated setActivePlaceholder to be consistent with activeLabel 2018-02-23 12:33:41 +03:00
Alexander Makarov
7febeb8ad4 Renamed yii\helpers\FileHelper findDirectory() method to findDirectories() to be consistend with findFiles() 2018-02-16 22:41:28 +03:00
André Sousa
d39d3ed0a6 Fixes #15644: Avoid wrong default selection on a dropdown, checkbox list, and radio list, when a option has a key equals to zero 2018-02-15 18:23:12 +03:00
Brandon Kelly
e6f5c46cdc Fixes #15633: Deprecate some things going away/changing in 2.1
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
2018-02-11 01:48:29 +03:00
Arsen
16e63f6de2 Fixes #13465: Added yii\helpers\FileHelper::findDirectory() method 2018-02-03 23:00:59 +07:00
Elvira Sheina
06ebd3faa7 Fixes #13034: Fixed normalizePath for windows network shares that start with two backslashes 2018-01-30 17:57:13 +07:00
Hanafi Ahmat
4f7b410230 Fixes #9771: Assign hidden input with its own set of HTML options via $hiddenOptions in activeFileInput $options 2018-01-24 17:02:03 +03:00
Klimov Paul
71c541773f PHPDoc fix 2018-01-23 13:17:25 +02:00
Klimov Paul
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
Alexander Makarov
6c0540aa2d Fixes #15496: CSRF token is now regenerated on changing identity 2018-01-14 02:13:24 +03:00
vladis
78d76c3f2c Enh #15226: Auto generate placeholder from fields 2017-12-24 08:07:18 +05:00
SilverFire - Dmitry Naumenko
9e0f19ace7 Renamed Html::error() option errorMethod to errorSource 2017-12-22 11:02:08 +02:00
Paul Klimov
1b8da6d951 Add StringHelper::matchWildcard() (#15389)
`StringHelper::matchWildcard()` added
2017-12-20 16:16:25 +02:00
Ilya Rogov
d7c8286f20 Added test for yii\helpers\BaseConsole (#14212) 2017-12-20 02:18:30 +03:00
杨国帅
f9cdcf438d Fixes #3087: Added yii\helpers\BaseHtml::error() "errorMethod" option to be able to customize errors display 2017-12-19 23:16:00 +03:00
brandonkelly
6ab93bd4ef a => A (fixes #15380) 2017-12-18 05:45:05 -08:00
Elvira Sheina
f11f818b18 Fixes #7988: Added \yii\helpers\Console::errorSummary() and \yii\helpers\Json::errorSummary() 2017-12-14 10:59:53 +03:00
Alexander Makarov
4270470523 Various test fixes (mostly Windows-specific) (#15336) 2017-12-11 22:59:17 +03:00
Viktor
873c2b6b8f Fixed HHVM tests (#15330)
* Fixed Ipv6ExpandingWithInvalidValue test on HHVM

* Skip PgSQLCache tests on HHVM
2017-12-11 15:10:58 +03:00
Dmitry Naumenko
d604d80823 Fixes #14043: Added yii\helpers\IpHelper 2017-12-10 01:15:39 +03:00
hhniao
d2423cd6ca Fixes #15301: Fixed ArrayHelper::filter() to work properly with 0 in values 2017-12-08 16:34:29 +03:00
Pavel Dovlatov
b20d2692a1 More tests for Console helper (#15285)
* Adding some tests for \yii\helpers\BaseConsole

BaseConsole::input()
BaseConsole::output()
BaseConsole::error()
BaseConsole::prompt()
BaseConsole::confirm()
BaseConsole::select()

* Simplify Console helper stub for obviousness

* Linking to \yii\helpers\Console instead of \yii\helpers\BaseConsole
2017-12-06 12:51:02 +03:00
IceJOKER
01ff1f6593 Fixes #15142: Fixed array params replacing in yii\helpers\BaseUrl::current() 2017-12-02 08:26:55 +03:00
Gabriel Caruso
2992b9b09d Refactored tests with PHPUnit assert methods (#15260) 2017-11-30 22:10:31 +03:00
Alexander Makarov
fb23b0d0ea Code style fixes 2017-11-01 02:43:02 +03:00
Dmitry Naumenko
64d8af61a6 Fixes for PHP 7.2 compatibility (#14959) 2017-10-19 01:54:40 +03:00
Robert Korulczyk
c78201899b Fixes #13720: Improve yii\helpers\FormatConverter::convertDatePhpToIcu() to handle escaped chars correctly 2017-10-08 18:07:26 +02:00
Robert Korulczyk
59b635c2a6 Fixes #14921: Fixed bug with replacing numeric keys in yii\helpers\Url::current() 2017-10-07 18:47:31 +02:00
Carsten Brandt
36b535c26b Fixes #13254: Made yii\helpers\StringHelper and yii\validators\StringValidator independent of Yii::$app instance 2017-09-07 22:32:07 +03:00
Carsten Brandt
431c1b01a7 added test case for merging empty arrays
issue #14617
2017-09-01 10:58:45 +02:00
Robert Korulczyk
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
Robert Korulczyk
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
Robert Korulczyk
0c0942d6e2 Enable phpdoc_add_missing_param_annotation rule in php-cs-fixer config. (#14681) [skip ci] 2017-08-21 01:57:23 +03:00
Robert Korulczyk
b99e955627 Fix CS (#14665)
* Run php-cs-fixer.

* Enable phpdoc_types rule.
2017-08-18 12:10:42 +02:00
Carsten Brandt
69673c0c94 Rename Object -> BaseObject for PHP 7.2 compatibility
issue #7936
2017-07-19 10:51:46 +02:00
Alex
59002a9e1e Fixes #6644: Added yii\helpers\ArrayHelper::setValue() 2017-07-16 00:25:44 +03:00
Dmitry Dorogin
6e223e6db2 Fixes #14423: Fixed ArrayHelper::merge behavior with null values for integer-keyed elements 2017-07-13 10:36:59 +03:00