Alexander Makarov
1271bc419f
Fix #19041 : Fix PHP 8.1 issues
3 years ago
Alexander Makarov
655786b7ed
release version 2.0.44
3 years ago
Anton
cccb65a70d
Fix #19108 : Optimize `Component::hasEventHandlers()` and `Component::trigger()`
3 years ago
Anton
6067608321
Fix #19005 : Add `yii\base\Module::setControllerPath()`
3 years ago
Papp Péter
0d899fa18b
Fix #19030 : Add DI container usage to `yii\base\Widget::end()`
3 years ago
Alexey Rogachev
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
3 years ago
Alexey Rogachev
fa6f0ef658
Fix variable references in phpdoc ( #19006 )
3 years ago
Anton
4c1f872320
Improve ArrayAccess phpdoc in yii\base\Model ( #18992 )
...
Fix parameter name in `offsetSet()`
Fix type of property `$offset` in PhpDoc's
3 years ago
Anton
d80974da30
Fix #18955 : Check `yiisoft/yii2-swiftmailer` before using as default mailer in `yii\base\Application`
3 years ago
Bizley
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
3 years ago
Bizley
ae82b58d85
Fix #18909 : Fix bug with binding default action parameters for controllers
3 years ago
Anton
6b8b0a94d9
Fix phpdoc of yii\base\Model
3 years ago
Anton
d6632a8367
Fix phpdoc of `yii\base\Model` ( #18888 )
3 years ago
Leo
9ed87a0ad6
Fix #18858 : Reduce memory usage in `yii\base\View::afterRender` method
3 years ago
Bizley
ea60fba0ae
Fix yii\base\Controller::bindInjectedParams() to not throw error when argument of `ReflectionUnionType` type is passed ( #18869 )
3 years ago
Alexander Makarov
13f27e4d92
Fix #18817 : Use `paragonie/random_compat` for random bytes and int generation
3 years ago
Alexandru Bucur
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>
3 years ago
Bizley
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>
3 years ago
Bizley
82be8b61cf
Replacing deprecated `::className()` with `::class` ( #18671 )
3 years ago
Dmitry Eliseev
4479c66522
Fixed phpdoc types
4 years ago
Alexander Makarov
4e2045c040
release version 2.0.41
4 years ago
Bizley
95bf26a3ba
Fix #18477 : Fix detecting availability of Xdebug's stack trace in `yii\base\ErrorException`
4 years ago
stevekr
5995edb670
Update public property types of yii\base\Module
4 years ago
Bizley
cffb129605
Few quick fixes to make IDE happy
4 years ago
Spell6inder
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()`
4 years ago
Ikko Ashimine
15327fe969
Fix typo in ArrayableTrait.php
...
embeded -> embedded
4 years ago
Yusup Hambali
771e96d7db
Fix #18400 : Set parent module of the newly attached child module by `Module::setModule()` and `Module::setModules()`
4 years ago
stevekr
e77fee2482
Fix phpdoc types
4 years ago
stevekr
51c72b582b
Fix types in Controller and View classes ( #18397 )
...
* Set yii\base\Controller::actions() return type
* Change yii\base\View::$params type to array
4 years ago
Alexander Makarov
ccb14ff667
release version 2.0.39
4 years ago
Alexander Makarov
ed1c087784
Fix #18317 : Additional PHP 8 compatibility fixes
...
Co-authored-by: Bizley <pawel@positive.codes>
4 years ago
DrDeath72
0210999748
Fix #18308 : Fixed `\yii\base\Model::getErrorSummary()` reverse order
4 years ago
My6UoT9
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 `|`
4 years ago
My6UoT9
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.
4 years ago
Vladislav Pototskiy
e348c0f460
Fix #18269 : Fix integer safe attribute to work properly in `yii\base\Model`
4 years ago
Alexander Makarov
700ac02706
release version 2.0.36
4 years ago
Alexander Makarov
38f038175f
Adjust changelog, correct phpdoc, minor code style fixes
4 years ago
Deryabin Sergey
7eb184eadb
Fix #17999 : Fix skipping test case on PHP v >= 7.1 and LibreSSL version >= 2.15
4 years ago
egorrishe
5c3ee63316
Fix #15202 : Add optional param `--silent-exit-on-exception` in `yii\console\Controller`
4 years ago
ErickSkrauch
2e21a8275c
Fix #18115 : Allow to load action-injected services from module's container
4 years ago
Brandon Kelly
fc4f449e21
Fix #18083 : Add `Controller::$request` and `$response`
4 years ago
Sam
4ea484ca68
Fix #17722 : Add action injection support
4 years ago
Alexander Makarov
60a39654dd
release version 2.0.35
4 years ago
Alexander Makarov
f425f1a655
Fix DynamicModel phpdoc
4 years ago
Maksym Storchak
c32811887a
Fix #18011 : Added attribute labels support for `DynamicModel`, fixed `EachValidator` to pass the attribute label to the underlying `DynamicModel`
4 years ago
ricardomm85
355ca1562d
Fix #17810 : Fix EachValidator crashing with uninitialized typed properties
5 years ago
Alexander Makarov
82649fc741
Fix formatting
5 years ago
Alexander Makarov
fbd7eded2d
Bug #17933 : Log warning instead of erroring when URLManager is unable to initialize cache
5 years ago
Ivan Hermanov
6e9764b467
Added support of JsonSerializable interface to ArrayableTrait ( #17888 )
5 years ago
Alexander Makarov
fd6ccb615c
release version 2.0.32
5 years ago