Commit Graph

95 Commits

Author SHA1 Message Date
Alexander Makarov
50831e6f08 Travis leftovers cleanup 2021-03-03 02:21:39 +03:00
Bizley
95bf26a3ba Fix #18477: Fix detecting availability of Xdebug's stack trace in yii\base\ErrorException 2021-01-13 16:13:41 +03:00
Yusup Hambali
771e96d7db Fix #18400: Set parent module of the newly attached child module by Module::setModule() and Module::setModules() 2020-12-15 17:52:30 +03:00
DrDeath72
0210999748 Fix #18308: Fixed \yii\base\Model::getErrorSummary() reverse order 2020-10-02 11:43:30 +03:00
Vladislav Pototskiy
e348c0f460 Fix #18269: Fix integer safe attribute to work properly in yii\base\Model 2020-09-07 00:33:50 +03:00
Alexander Makarov
3ff6c9b527 Fix #17999 test 2020-07-01 23:41:41 +03:00
Deryabin Sergey
7eb184eadb Fix #17999: Fix skipping test case on PHP v >= 7.1 and LibreSSL version >= 2.15 2020-07-01 00:14:57 +03:00
Toma91
a982f31606 Fixes #17300: Fix class-level Event handling with wildcards 2020-01-15 13:16:05 +03:00
Viktor Khokhryakov
4c76dc4c90 Fix #16610: ErrorException trace was cut when using XDebug 2019-09-18 13:40:10 +03:00
Alexander Makarov
e7c6d3d889 Fix incorrect constant reference 2019-09-04 01:20:58 +03:00
Somogyi Márton
90d46298ad Fix #17507: Fixed regular expression escaping and simpler condition in Controller::createAction() 2019-08-22 12:11:12 +03:00
Nikolay Poryadin
491f9737fe Fix #17223: Fixed detaching a behavior event when it is a Closure instance 2019-08-13 20:35:42 +03:00
Alexander Kartavenko
2b9374558b Fix #17395: Fixed issues with actions that contain underscores in their names 2019-07-08 13:46:43 +03:00
Alexander Makarov
1c919a5ac5 Fixes #17377: Add tests that verify there are no false positives 2019-06-18 12:22:35 +03:00
Alexander Makarov
317a73a59f Fixes #17336: Fixed wildcard matching in Event::hasHandlers() 2019-06-04 15:07:51 +02:00
Carsten Brandt
d0712e4918 added tests to verify issue #16484
the case is to match all module names before a catch-all URL rule.
module routes should work with "module name only", "module
name+controller name" and "module/controller/action".
2018-07-24 16:45:46 +02:00
Razvan Grigore
ca3c8da503 Fixes #16377: Fixed yii\base\Event:off() undefined index error when event handler does not match 2018-06-12 09:50:43 +03:00
Vuong Minh
aeeb6ce39d Fixes #16252: Fixed yii\base\DynamicModel for checking exist property 2018-05-30 22:51:52 +03:00
Paweł Jankowiak
33fe3476c7 Fixes #16280: Fixed yii\base\Model::getActiveValidators() to return correct validators for attribute on scenario 2018-05-21 01:17:34 +05:00
Sam
a8d95f429d Fixes #14636: Views can now use relative paths even when using themed views 2018-05-11 12:50:56 +03:00
杨国帅
2c997cdb82 Fixes #16184: Fixed yii\base\Widget to access stack property with self instead of static 2018-04-29 12:36:10 +03:00
SilverFire - Dmitry Naumenko
08c87aec4f Fixed Component::off() not to throw an exception
Fixes #15822
2018-03-03 16:37:41 +02: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
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
Elvira Sheina
a559b9fa76 Fixes #14903: Fixed route with extra dashes is executed controller while it should not 2018-01-09 18:59:07 +04:00
Alexander Makarov
e813c20124 Fixes #3250: Added support for events partial wildcard matching 2017-12-24 00:36:54 +03:00
Klimov Paul
c2cf1f03ca Event wildcards added to Event 2017-12-22 17:32:03 +02:00
SilverFire - Dmitry Naumenko
072ef77ea5 Prevent source path disclosure when form is represented by an anonymous class 2017-12-22 12:21:32 +02:00
Klimov Paul
8fccf7f6ca Event wildcards added 2017-12-20 17:44:03 +02:00
Elvira Sheina
f11f818b18 Fixes #7988: Added \yii\helpers\Console::errorSummary() and \yii\helpers\Json::errorSummary() 2017-12-14 10:59:53 +03:00
Elvira Sheina
713529e042 Fixes #8752: Allow specify $attributeNames as a string for yii\base\Model validate() method 2017-12-13 23:00:36 +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
SilverFire - Dmitry Naumenko
dbe7f7cac0 Disabled slow test on Travis 2017-10-30 19:50:03 +02:00
Marko Kruljac
22d453faac Fixes #14134: Fixed multiple validateAttribute() calls when scenarios() returns duplicate attributes 2017-10-07 19:40:06 +02:00
Alexander Makarov
b27b34df84 Removed yii\base\Object import 2017-10-04 17:12:42 +01: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
Klimov Paul
a4bd0edeaa unit test for yii\base\Widget added 2017-09-01 17:10:32 +03:00
Paul Klimov
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
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
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
393fc2744a Added yii\base\Object for backwards compatibility
fixes #7936
close #14478
2017-07-19 10:53:33 +02:00
Carsten Brandt
69673c0c94 Rename Object -> BaseObject for PHP 7.2 compatibility
issue #7936
2017-07-19 10:51:46 +02:00
Alexander Makarov
000192522b Fixes #14482: fixed tests incompatibility with PHP 5.4 2017-07-19 00:42:41 +03:00
Boudewijn Vahrmeijer
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
Robert Korulczyk
12eb936083 Enable heredoc_to_nowdoc rule in php-cs-fixer (#14419) 2017-07-10 13:18:52 +03:00