0538af7371
Fix #20442 : Add PHPStan/Psalm annotations for yii\base\Controller
methods: runAction
, run
, render
, renderPartial
and renderFile
2025-07-23 13:39:56 +03:00
c634b27c49
Merge branch 'master' into sync-to-master-6
2025-07-09 17:45:38 -04:00
52f28ee2ec
Fix #20433 : Added PHPStan/Psalm annotations for some controllers methods: beforeAction
, afterAction
and bindActionParams
2025-07-08 11:33:57 +03:00
f1a4d5beb2
Sync to master branch.
2025-06-28 14:33:11 -04:00
409db4a55c
Changing the key type in Controller::actions
( #20418 )
2025-06-15 23:18:47 +03:00
9fa5d4f46a
Fix PHPStan/Psalm annotations for Controller::actions
( #20414 )
2025-06-14 15:28:24 +03:00
ed9de17357
Sync to master branch. ( #20401 )
2025-06-09 12:03:50 -04:00
cde05962bf
Fix @var tags syntax in base
, behaviors
and caching
folder ( #20390 )
2025-05-31 09:47:14 +03:00
61d936d9a1
Merge branch 'master' into synt-to-master-1
2025-05-05 04:19:33 -04:00
a2259d0c1d
Fix #20373 : Fixed the type of the first parameter yii\base\Controller::bindInjectedParams()
2025-05-05 08:27:07 +03:00
f66ee97a45
Fix #20374 : Add PHPStan/Psalm annotations for BaseYii
, BaseObject
, Component
, Model
, Module
and yii\base\Controller
2025-05-05 08:24:57 +03:00
97a4d711ec
Merge branch 'master' into sync-master-2052.
2025-04-26 19:03:07 -04:00
52e4a3e645
release version 2.0.50
2024-05-30 20:23:31 +03:00
20d6c65db2
Merge branch 'master' into sync-to-master.
2024-03-20 06:11:31 -03:00
e2a167028b
Upgrade to PSR12 coding standard ( #20121 )
2024-03-19 17:21:27 +03:00
c9c100acd7
Remove deprecated method className()
for branch 2.2
. ( #19894 )
2023-07-16 21:45:39 +08:00
68b473679a
release version 2.0.47
2022-11-18 20:21:58 +04:00
25eed6fe1c
Fix phpdoc for yii\web\Controller ( #19619 )
2022-10-12 08:41:20 +02:00
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
4628b91e73
Fix types ( #19332 )
...
* Migration::upsert() returns void
* Unneeded `@property` tags
* Add missing `null` param/return types
* Null types for db\Query + db\ActiveQuery
* Fixed testSelect
2022-03-30 18:40:10 +02:00
655786b7ed
release version 2.0.44
2021-12-30 10:50:56 +03:00
ae82b58d85
Fix #18909 : Fix bug with binding default action parameters for controllers
2021-10-19 01:01:46 +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
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
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
38f038175f
Adjust changelog, correct phpdoc, minor code style fixes
2020-07-07 15:00:16 +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
18401399fe
Inline constant since it is not part of the public interface
...
In Yii 3 instead I'd make constant private but we have no PHP 7 in 2.0
2019-09-04 00:35:53 +03:00
90d46298ad
Fix #17507 : Fixed regular expression escaping and simpler condition in Controller::createAction()
2019-08-22 12:11:12 +03:00
0fbec30bbc
Docs enhancement ( #15464 ) [skip ci]
2018-05-14 12:59:00 +03:00
14984328e5
SCA with Php Inspections (EA Ultimate) ( #16105 )
2018-04-16 13:22:54 +03:00
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
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
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +03:00
4b9e48b8dc
improved docs: link term "path alias" to the guide
2017-06-02 10:45:20 +02:00
950e895fe0
Fix phpDocumentor annotations ( #13905 ) [skip ci]
2017-04-02 21:49:09 +03:00
5609e918de
Fixed some malformed @var tags ( #13468 ) [skip ci]
2017-01-30 11:42:52 +03:00
65e4a28800
consistent behavior for Yii::$app->controller and ->action ( #13167 )
...
Fixed inconsistency, `Yii::$app->controller` is available
after handling the request since 2.0.10, this is now also the case for
`Yii::$app->controller->action`.
fixes #12795
2016-12-08 18:00:05 +01:00
954c771fdb
Code cleanup ( #13113 )
...
* Simplified code branching, named variable better
* More simple code cleanup
* More consistent line breaks before return statemetns
2016-12-03 00:15:53 +03:00
4aa935e69e
Fixes #12055 : Changed boolean
to bool
and integer
to int
in phpdoc
2016-11-07 02:51:39 +03:00
32f4dc8997
Fixes #5385 : links created from classes to corresponding guide articles ( #12920 )
2016-11-04 18:55:14 +03:00
d0a68883c7
phpDoc of $layout updated
2016-05-13 14:18:19 +03:00
20de74d343
Fix spelling in Controller.php
2016-04-04 06:21:33 +02:00
ff37be0fb8
add doc summary for getUniqueID
...
This way it won't be empty in the table of methods.
2016-03-28 15:06:13 +02:00
aa0bf9a3c7
phpDoc: Added null to Controller::$layout
2016-03-23 16:37:42 +03:00
cd87d67f34
Global DOCS update: ~~~ replaced with ```
2015-12-02 23:15:28 +02:00