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
cccb65a70d
Fix #19108 : Optimize Component::hasEventHandlers() and Component::trigger()
2021-12-23 14:35:50 +03:00
6067608321
Fix #19005 : Add yii\base\Module::setControllerPath()
2021-12-09 10:46:15 +03:00
0d899fa18b
Fix #19030 : Add DI container usage to yii\base\Widget::end()
2021-11-30 23:58:24 +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
fa6f0ef658
Fix variable references in phpdoc ( #19006 )
2021-11-10 13:26:55 +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
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
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
9ed87a0ad6
Fix #18858 : Reduce memory usage in yii\base\View::afterRender method
2021-09-14 17:41:53 +03:00
ea60fba0ae
Fix yii\base\Controller::bindInjectedParams() to not throw error when argument of ReflectionUnionType type is passed ( #18869 )
2021-09-06 20:16:14 +02:00
13f27e4d92
Fix #18817 : Use paragonie/random_compat for random bytes and int generation
2021-08-09 10:25:36 +03:00
2fe03cd82c
Only log the $_SERVER information under YII_DEBUG ( #18707 )
...
* Only log the $_SERVER information under YII_DEBUG
Since $_SERVER can contain sensitive information that could leak in CI pipelines ideally it should happen under the YII_DEBUG flag only
* Added upgrade / changelog
* Corrected the upgrade information
* Update framework/UPGRADE.md
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-07-03 18:55:06 +02:00
7966fe47e6
Scrutinizer fixes ( #18685 )
...
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/filters/AccessRule.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/helpers/BaseFileHelper.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Application.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Module.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/MultipartFormDataParser.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/Session.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Controller.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Added vardocs, and small refactor
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/conditions/InConditionBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/Connection.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/mssql/QueryBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/log/Logger.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/BaseMigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Adding space between type
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/CacheController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/FixtureController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-05-31 21:07:36 +03:00
82be8b61cf
Replacing deprecated ::className() with ::class ( #18671 )
2021-05-22 23:14:54 +03:00
4479c66522
Fixed phpdoc types
2021-03-12 23:41:48 +03:00
4e2045c040
release version 2.0.41
2021-03-04 00:51:35 +03:00
95bf26a3ba
Fix #18477 : Fix detecting availability of Xdebug's stack trace in yii\base\ErrorException
2021-01-13 16:13:41 +03:00
5995edb670
Update public property types of yii\base\Module
2021-01-11 15:20:11 +03:00
cffb129605
Few quick fixes to make IDE happy
2020-12-22 18:44:15 +03:00
fb35f20f6d
Fix #18435 : Change the check order whether an object is an implementation of Arrayable or JsonSerializable in \yii\base\ArrayableTrait::toArray() and \yii\rest\Serializer::serialize()
2020-12-21 11:08:09 +03:00
15327fe969
Fix typo in ArrayableTrait.php
...
embeded -> embedded
2020-12-17 23:17:12 +03:00
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
e77fee2482
Fix phpdoc types
2020-11-24 17:45:01 +03:00
51c72b582b
Fix types in Controller and View classes ( #18397 )
...
* Set yii\base\Controller::actions() return type
* Change yii\base\View::$params type to array
2020-11-19 14:46:13 +03:00
ccb14ff667
release version 2.0.39
2020-11-10 13:58:35 +03:00
ed1c087784
Fix #18317 : Additional PHP 8 compatibility fixes
...
Co-authored-by: Bizley <pawel@positive.codes>
2020-10-23 12:42:44 +03:00
0210999748
Fix #18308 : Fixed \yii\base\Model::getErrorSummary() reverse order
2020-10-02 11:43:30 +03:00
03da5bb689
Updates to ErrorHandler, add missing type hint \Throwable ( #18302 )
...
* Updated phpdoc so it has \Throwable
- `abstract protected function renderException($exception);` is extended in web/ErrorHandler to also have `\Error`.
- `public static function convertExceptionToError($exception)` is called from widgets/ActiveField.php with
```
/**
* PHP magic method that returns the string representation of this object.
* @return string the string representation of this object.
*/
public function __toString()
{
// __toString cannot throw exception
// use trigger_error to bypass this limitation
try {
return $this->render();
} catch (\Exception $e) {
ErrorHandler::convertExceptionToError($e);
return '';
} catch (\Throwable $e) {
ErrorHandler::convertExceptionToError($e);
return '';
}
}
```
* Add \Throwable to phpdoc in response.php
The ErrorHandler has been updated in phpdoc to have throwable, this complets that change.
* Update ErrorHandler.php
fixed missing `|`
2020-09-30 02:34:23 +03:00
2ce927788a
Update phpdoc for widget->getId ( #18295 )
...
The private variable `$_id` is only set when `$autogenerate` is true, else it stays null, and will be returned by the function.
2020-09-21 14:56:52 +03:00
e348c0f460
Fix #18269 : Fix integer safe attribute to work properly in yii\base\Model
2020-09-07 00:33:50 +03:00
700ac02706
release version 2.0.36
2020-07-08 00:45:32 +03:00
38f038175f
Adjust changelog, correct phpdoc, minor code style fixes
2020-07-07 15:00:16 +03:00
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
5c3ee63316
Fix #15202 : Add optional param --silent-exit-on-exception in yii\console\Controller
2020-06-23 13:34:09 +03:00
2e21a8275c
Fix #18115 : Allow to load action-injected services from module's container
2020-06-22 23:49:02 +03:00
fc4f449e21
Fix #18083 : Add Controller::$request and $response
2020-06-14 21:19:27 +03:00
4ea484ca68
Fix #17722 : Add action injection support
2020-06-12 10:06:18 +03:00
60a39654dd
release version 2.0.35
2020-05-02 14:11:31 +03:00
f425f1a655
Fix DynamicModel phpdoc
2020-05-02 14:09:40 +03:00
c32811887a
Fix #18011 : Added attribute labels support for DynamicModel, fixed EachValidator to pass the attribute label to the underlying DynamicModel
2020-05-02 02:14:03 +03:00
355ca1562d
Fix #17810 : Fix EachValidator crashing with uninitialized typed properties
2020-04-04 15:03:09 +03:00
82649fc741
Fix formatting
2020-03-26 23:37:59 +03:00
fbd7eded2d
Bug #17933 : Log warning instead of erroring when URLManager is unable to initialize cache
2020-03-26 23:21:35 +03:00
6e9764b467
Added support of JsonSerializable interface to ArrayableTrait ( #17888 )
2020-02-22 12:34:27 +03:00
fd6ccb615c
release version 2.0.32
2020-01-22 01:29:38 +03:00