9066 Commits

Author SHA1 Message Date
cccb65a70d Fix #19108: Optimize Component::hasEventHandlers() and Component::trigger() 2021-12-23 14:35:50 +03:00
8e0e5ad814 Fix #19096: Fix Request::getIsConsoleRequest() may return erroneously when testing a Web application in Codeception 2021-12-22 00:57:30 +03:00
6067608321 Fix #19005: Add yii\base\Module::setControllerPath() 2021-12-09 10:46:15 +03:00
1e41533789 (Docs) Normalized existing "virtual" / "magic" methods' descriptions, add missing ones (#19066) 2021-12-08 12:27:28 +03:00
6c9eb1a90c (Docs) Fixed preview for $prepareDataProvider (#19055) 2021-12-02 17:21:34 +03:00
766cf701e5 Fix #19031: Fix displaying console help for parameters with declared types 2021-12-01 15:11:19 +03:00
0d899fa18b Fix #19030: Add DI container usage to yii\base\Widget::end() 2021-11-30 23:58:24 +03:00
d52c1237ca Update Controller phpdoc (#19052) 2021-11-30 17:12:53 +03:00
17aa0e40c1 Fix #13105: Add yiiActiveForm validate_only property for skipping form auto-submission 2021-11-26 10:19:50 +03:00
6aa5bd8d46 Fix #18967: Use proper attribute names for tabular data in yii\widgets\ActiveField::addAriaAttributes() 2021-11-22 13:00:45 +03:00
81a3b83995 Fix #19021: Fix return type in PhpDoc yii\db\Migration functions up(), down(), safeUp() and safeDown()
* Fixed PhpDoc in Migration.php (revert #18886)

Fixed the return type of `up()`, `down()`, `safeUp()` and `safeDown()` functions to match the described behavior.
The current implementation checks for `false`, "all other return values mean the migration succeeds".
This PR also reverts #18886 since it was a code fix for what was documentation error.

Allow all possible values for `yii\db\Migration` functions `up()`, `down()`, `safeUp()` and `safeDown()`
2021-11-22 00:43:53 +03:00
552593ca3b Prepare for new apidoc (part 2) (#19010)
* Fix broken links for events with different namespace
* Fix broken links in see tag
* Fix broken links in see tag (loadData())
* Fix broken link for var_export()
* Fix broken link for CVE
* Remove redundant markdown link wrap in see tags
* Remove see tags that refer to private properties
* Remove more see tags that refer to private properties
* Remove see tags that refer to private methods
* Remove one more redundant markdown link wrap in see tag [skip ci]
* Fix typo in see tag (causes broken link)
* Remove more see tags that refer to private methods
2021-11-18 10:10:09 +03:00
c8d027f649 Fix #18993: Load defaults by attributes() in yii\db\ActiveRecord::loadDefaultValues() 2021-11-12 00:25:08 +03:00
533b569005 Fix PhpDoc of ActiveField (#19001) 2021-11-12 00:21:03 +03:00
fa6f0ef658 Fix variable references in phpdoc (#19006) 2021-11-10 13:26:55 +03:00
53477e8ad9 Correct note about html encoded items in radio/checkboxlist (#19007) 2021-11-09 21:16:57 +01:00
03235e6c12 Fix #18988: Fix default value of yii\console\controllers\MessageController::$translator 2021-11-02 13:21:37 +03:00
4c1f872320 Improve ArrayAccess phpdoc in yii\base\Model (#18992)
Fix parameter name in `offsetSet()`
Fix type of property `$offset` in PhpDoc's
2021-11-01 09:26:54 +03:00
4b3361bf02 Docs enhancements (#18985)
- added more strict checks in if condition: that if `$user` exists, only then call its method
 - Renamed `verifyPassword` to `validatePassword` because yii2-advanced-template use that method name
2021-10-29 22:02:24 +02:00
480ae53f6d Fix migration command example in BaseMigrateController (#18978) 2021-10-27 10:08:09 +03:00
97f9fba7e9 Fix #18962: Extend ignore list in yii\console\MessageController::$except 2021-10-27 00:11:14 +03:00
e294c23102 Fix#18328: Yii::warning() raised on file register after View::endBody() has been moved to View::endPage() (#18975)
Co-authored-by: Mehdi Achour <machour@gmail.com>
2021-10-25 23:11:29 +03:00
d27fb96409 StringHelper::dirname() fixed for trailing slash (#18965)
* StringHelper::dirname() fixed for trailing slash

* StringHelper::dirname() fix for PHP <7 versions

* Update CHANGELOG.md

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
2021-10-24 10:43:54 +02:00
b757d25c4b Fix #18328: Raise warning when trying to register a file after View::endBody() has been called 2021-10-23 16:08:33 +03:00
6fdba043d7 Update Session.php (#18969) 2021-10-22 08:46:29 +02:00
d80974da30 Fix #18955: Check yiisoft/yii2-swiftmailer before using as default mailer in yii\base\Application 2021-10-20 11:10:20 +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
ae82b58d85 Fix #18909: Fix bug with binding default action parameters for controllers 2021-10-19 01:01:46 +03:00
14a28ab4f4 docs improvment (#18935) 2021-10-05 10:13:33 +02:00
7cca296a5e Framework(Baseyii.php) -----> fixed typos and improved doc (#18927)
* fixed typos and improved doc

* spacing fix

* The ---> the

* removed "are"

Co-authored-by: Bizley <pawel@positive.codes>
2021-10-03 19:33:30 +02:00
0181a49bb4 Fix phpdoc in BaseFileHelper (#18928) 2021-10-03 16:31:37 +03:00
ccf979196c Fix yii\i18n\GettextMessageSource PHPDoc (#18916) 2021-10-03 00:23:20 +03:00
e078c9422f Fix typos 2021-10-02 21:36:35 +03:00
3578621833 Shorten two identical statements in compare validator (#18922) 2021-10-01 23:37:54 +03:00
f7c81fb044 Fix BaseMigrateController::$migrationPath phpdoc (#18924) 2021-10-01 23:35:54 +03:00
175f66e6e0 Fix #18908: Add stdClass as possible return type to getBodyParams (#18918) 2021-10-01 23:23:30 +03:00
2c3f5d990c Fix #18733: Fix session offset doc types (#18919) 2021-10-01 17:16:38 +03:00
01b6b2a5d1 Fix #18913: Add filename validation for MessageSource::getMessageFilePath()
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-10-01 00:52:36 +03:00
e3028c524d Fix #18899: Replace usages of strpos with strncmp and remove redundant usage of array_merge and array_values 2021-09-28 11:06:46 +03:00
f2caf02164 Fix #18904: Improve Captcha client-side validation 2021-09-28 09:55:47 +03:00
1d7f9d8d2d Fix #18898: Fix yii\helpers\Inflector::camel2words() to work with words ending with 0 2021-09-23 17:24:17 +03:00
f8e65d2027 Fix @since tag in XmlResponseFormatter.php (#18901)
Wrong version, see https://github.com/yiisoft/yii2/blob/master/framework/CHANGELOG.md#2044-under-development
2021-09-23 15:18:17 +03:00
7332cc2cba Fix an invalid phpDoc annotation of yii\data\DataProviderInterface::getSort(). (#18897) 2021-09-22 19:13:09 +02:00
fdbdbb51fb Fix #18886: Fix default return of yii\db\Migration::safeUp() and yii\db\Migration::safeDown() 2021-09-19 12:38:06 +03:00
4e5c95f8f1 Fix PhpDoc of yii\console\Controller::stderr() (#18885) 2021-09-18 21:32:16 +03:00
6b8b0a94d9 Fix phpdoc of yii\base\Model 2021-09-18 00:10:23 +03:00
d6632a8367 Fix phpdoc of yii\base\Model (#18888) 2021-09-17 23:57:49 +03:00
f3956a4eec Fix header collection from array (#18883)
* Fixed HeaderCollection::fromArray() key case

* Added CHANGELOG.md line for #18883 (Fixed HeaderCollection::fromArray() key case)
2021-09-17 09:29:33 +02:00
Leo
9ed87a0ad6 Fix #18858: Reduce memory usage in yii\base\View::afterRender method 2021-09-14 17:41:53 +03:00
59eb9a3395 Fixed ArrayHelper::toArray for DateTime (#18880)
* Fixed ArrayHelper::toArray() for DateTime object

* Updated README.md for #18880 (Fixed ArrayHelper::toArray() for DateTime object)

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-09-14 15:30:10 +02:00