657 Commits

Author SHA1 Message Date
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
c95d7c81ea Fix #20427: Remove PHP_VERSION_ID and PHP_MAJOR_VERSION checks from console Controller class 2025-06-27 11:52:09 +03:00
ed9de17357 Sync to master branch. (#20401) 2025-06-09 12:03:50 -04:00
8b50a4942a Fix @var tags syntax in framework folder (#20392) 2025-06-03 19:57:08 +03:00
15234e8d5e Fix #20387: Fixed the command generated to use router.php file in php built-in server 2025-05-26 17:00:07 +03:00
97a4d711ec Merge branch 'master' into sync-master-2052. 2025-04-26 19:03:07 -04:00
26756a7e0f Add support for dropping views in MSSQL server when running migrate/fresh 2024-09-19 22:09:51 +02:00
5abe83e323 Fix #20247: Support for variadic console controller action methods 2024-08-19 08:30:57 +03:00
f96c2c5ef4 Add accidentally removed phpdoc 2024-07-12 16:29:14 +03: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
0c8b043001 Merge branch 'master' into synchronize-to-master. 2023-10-22 07:20:26 -03:00
7b1761d9e1 Revert to 169c5fb 2023-10-22 11:39:45 +02:00
f58eb362ca Remove YII_ENV. 2023-10-21 08:53:15 -03:00
ecc6c6121e Use Mock tests, after checking the real test. 2023-10-20 12:42:19 -03:00
70a7282fec Fix yii server and add tests. 2023-10-20 10:45:21 -03:00
a7364aeb87 Sync to master. (#20012)
* added pcntl to requirements check

* Fix #13920: Fixed erroneous validation for specific cases

* Fix #13920: Added my name to CHANGELOG.md

* trim(): Passing null to parameter #1 ($string) of type string is deprecated

* Added section about Unsafe Reflection in Security best practices doc (#19948)

Co-authored-by: Bizley <pawel.bizley@gmail.com>

* Update CHANGELOG.md

* Fixed tests.

* Fix #13920: Add unit test

* Update `bower-asset/inputmask`, `bower-asset/punycode`.

* added CHANGELOG line

* Fix order.

* fix: #19978 - Mistake in Korean translation

* fix: keep doublequote

* Do not duplicate log messages in memory

* Update framework/log/FileTarget.php

Co-authored-by: Bizley <pawel.bizley@gmail.com>

* Update concept-di-container.md

Сслка "Конфигурация приложения" была не верной, она вела на страницу "Service-locator'a"

* Update CHANGELOG.md

* release version 2.0.49.1

* prepare for next release

* Revert changes in `mimeTypes.php` from 4a1f2c6b9bc90427e91da73f5e8c8fa33d3c53c1

restores https://github.com/yiisoft/yii2/pull/19936

* update actions/checkout to v4

* Fix mime type generator

* Added note

* Update structure-controllers.md (#20003)

добавил пропущенное слово "как"

* Update CHANGELOG.md

2.0.49.2 changelog

* release version 2.0.49.2

* prepare for next release

* New methods: BaseActiveRecord::loadRelations() and BaseActiveRecord::loadRelationsFor().

* Fixed a bug where the yii serve command would break if a custom router was supplied and it had a space in the path

* Fix `MaskedInputAsset::class`.

* Fix #19927: Fixed `console\controllers\MessageController` when saving translations to database: fixed FK error when adding new string and language at the same time, checking/regenerating all missing messages and dropping messages for unused languages

* Added 'zh' into 'framework/messages/config.php' (#19995)

---------

Co-authored-by: Tobias Munk <schmunk@usrbin.de>
Co-authored-by: Tim Fischer <tf@maschinensucher.de>
Co-authored-by: Tim Fischer <35448254+tim-fischer-maschinensucher@users.noreply.github.com>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Oleg Poludnenko <ua.oleg@gmail.com>
Co-authored-by: Bizley <pawel.bizley@gmail.com>
Co-authored-by: Sonia Zorba <zonia3000@gmail.com>
Co-authored-by: Tobias Munk <t.munk@herzogkommunikation.de>
Co-authored-by: Akbar Herlambang <akbar6393222@yahoo.com>
Co-authored-by: lubosdz <lubosdz@gmail.com>
Co-authored-by: Yuriy Bachevskiy <Materik-r@yandex.ru>
Co-authored-by: Robert Korulczyk <robert@korulczyk.pl>
Co-authored-by: salehhashemi1992 <81674631+salehhashemi1992@users.noreply.github.com>
Co-authored-by: PowerGamer1 <PowerGamer1@users.noreply.github.com>
Co-authored-by: Brad Bell <brad@pixelandtonic.com>
Co-authored-by: Alexandru Trandafir Catalin <alex@heavydots.com>
Co-authored-by: Nabi KaramAliZadeh <NabiKAZ@gmail.com>
2023-10-19 18:17:15 +03:00
961a952f82 Fix #19927: Fixed console\controllers\MessageController when saving translations to database: fixed FK error when adding new string and language at the same time, checking/regenerating all missing messages and dropping messages for unused languages 2023-10-16 10:17:02 +03:00
9875ae6445 Fixed a bug where the yii serve command would break if a custom router was supplied and it had a space in the path 2023-10-13 10:26:42 -07:00
2d98c9d511 Remove deprecated constant Controller::class. 2023-09-21 11:00:42 -03:00
9f41df5463 Merge branch '2.2' into update-2.2 2023-08-18 15:48:40 +04:00
84c15dc5d1 Fix associative array cell content in Table widget (#19908)
* Fixed rendering of assosative arrays in `\yii\console\widgets\Table`

* Updated readme for #19908 (fix associative array cell content rendering in Table widget)

---------

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2023-08-09 14:05:46 +02:00
1a0e91e912 Fix #19906: Fixed multiline strings in the \yii\console\widgets\Table widget 2023-07-24 09:56:04 +03:00
61195154aa Remove deprecated InvalidParamException::class in branch 2.2. (#19896) 2023-07-18 17:54:55 +03:00
c9c100acd7 Remove deprecated method className() for branch 2.2. (#19894) 2023-07-16 21:45:39 +08:00
3cebbdad2e Fix #19853: Added support for default value for \yii\helpers\Console::select() 2023-06-09 19:36:21 +03:00
c9f491b4f7 release version 2.0.48.1 2023-05-24 23:04:02 +04:00
3ad01aa0f0 Fix #19712: cast shell_exec() output to string for jsCompressor 2022-12-12 14:55:08 +03:00
473ead8e46 Optimize: simplified regexp (#19541) 2022-09-06 09:42:58 +03:00
775e9468cb Fix #14388: Fixed fixture loading order in output message 2022-08-29 10:35:54 +03:00
22614a5b1f release version 2.0.46 2022-08-19 01:18:45 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
90d290056c Fix #19477: cast shell_exec() output to string 2022-07-22 13:55:58 +03:00
4c1cae3d6d Improve reflection param/return types in console\Controller (#19431) 2022-06-17 20:21:44 +03:00
a87c02c712 Fix more types (#19333)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect

* Null types for Validator

* Several more null types

* One more

* Make AccessRule::$allow always a boolean

It doesn't have any special null handling, so it's safe to default to false

* Validator::$skipOnEmpty is always a boolean

* Catch all throwable from Widget::widget()

* Don't limit $previous args to \Exception

The actual \Exception allows $previous to be any throwable in PHP 7+

* Add Throwable catch block to Instance::get()

* Throwable cleanup

Comment changes only.

- Document \Throwable instead of \Exception wherever appropriate
- Removed redundant exception/error classes when \Throwable is referenced

* Yii::setlogger() accepts null

* ArrayHelper::removeValue() can remove any type of value

* Change default $allow value to false
2022-04-03 11:20:21 +02: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
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
02fe7f42c8 Fix #18660: Check name if backslash appears 2021-12-27 17:26:28 +03:00
766cf701e5 Fix #19031: Fix displaying console help for parameters with declared types 2021-12-01 15:11:19 +03:00
d52c1237ca Update Controller phpdoc (#19052) 2021-11-30 17:12:53 +03:00
fa6f0ef658 Fix variable references in phpdoc (#19006) 2021-11-10 13:26:55 +03:00
03235e6c12 Fix #18988: Fix default value of yii\console\controllers\MessageController::$translator 2021-11-02 13:21:37 +03: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
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
f7c81fb044 Fix BaseMigrateController::$migrationPath phpdoc (#18924) 2021-10-01 23:35:54 +03:00