654 Commits

Author SHA1 Message Date
ac373c06fe Fix #18845: Fix duplicating id in MigrateController::addDefaultPrimaryKey() 2021-09-03 11:35:19 +03:00
25c0e6dcad Fix #18656: Added ability for yii serve's --router param to take an alias 2021-07-27 22:35:47 +03:00
4a5b325160 Fix console error handler exception handling condition. Related to #18696
See https://github.com/yiisoft/yii2/pull/18696#discussion_r645877103
2021-06-05 23:29:10 +03:00
d5a428e001 Fix some code smells (#18696) 2021-06-05 13:37:45 +03: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
31ca0fcb6f Fix #18676: Added method yii\helpers\BaseFileHelper::changeOwnership() and properties newFileMode/newFileOwnership in yii\console\controllers\BaseMigrateController
Co-authored-by: Bizley <pawel@positive.codes>
2021-05-30 19:26:15 +03:00
054e259861 Fixed typo in console/Application.php (#18596) 2021-04-06 12:33:16 +03:00
4e2045c040 release version 2.0.41 2021-03-04 00:51:35 +03:00
a3b7c65622 Fix #18479: Fix invalid argument type for preg_split in \yii\console\Controller 2021-01-13 17:30:05 +03:00
b8f4958092 Fix #18442: Fix calls with array access to strings 2020-12-23 01:08:58 +03:00
6cba80d887 Fix #18339: Fix migrate controller actions to return exit codes
Co-authored-by: Bizley <pawel@positive.codes>
2020-12-09 16:48:39 +03:00
e77fee2482 Fix phpdoc types 2020-11-24 17:45:01 +03:00
9ed1b4c94a Add inheritdoc to generate proper docblock in API docs 2020-11-18 11:25:42 +03:00
ccb14ff667 release version 2.0.39 2020-11-10 13:58:35 +03:00
835971c6f6 Fix Controller phpdoc annotations 2020-11-02 13:13:11 +03:00
306171b582 Add phpdoc for properties "request" and "response" in web and console controllers (#18361) 2020-11-01 17:38:32 +03:00
cd36f505b1 Fix #16831: Fix console Table Widget does not render correctly in combination with ANSI formatting 2020-10-23 22:21:03 +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
3f3003d823 Fix #18303: Fix creating migration issue for column methods used after defaultValues 2020-10-05 01:02:21 +03:00
1d7baabab5 Fix #18297: Replace usage of deprecated ReflectionParameter::isArray() method in PHP8 2020-09-22 00:26:37 +03:00
9aa46136f6 Fix #18248: Render only one stack trace on console for chained exceptions 2020-09-07 01:34:22 +03:00
aca01e4fec Fix #18217: Make yii\console\ErrorHandler render chained exceptions in debug mode 2020-08-07 18:53:36 +03:00
dab7a6c317 Update phpdoc 2020-07-20 02:44:55 +03:00
4fa7d4ee48 Fix #18170: Fix regression in passing extra console command arguments to the action 2020-07-15 15:23:47 +03:00
38f038175f Adjust changelog, correct phpdoc, minor code style fixes 2020-07-07 15:00:16 +03:00
e478c23bd4 Fix #17985: Convert migrationNamespaces to array if needed
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2020-07-01 00:52:52 +03:00
2b9323d517 Fix #18047: Fix colorization markers output in Table.php 2020-06-23 13:45:34 +03:00
5c3ee63316 Fix #15202: Add optional param --silent-exit-on-exception in yii\console\Controller 2020-06-23 13:34:09 +03:00
fc4f449e21 Fix #18083: Add Controller::$request and $response 2020-06-14 21:19:27 +03:00
Sam
4ea484ca68 Fix #17722: Add action injection support 2020-06-12 10:06:18 +03:00
dc54137788 Fix #17852: Documented yii\console\Controller::stdout() additional parameters (#18076) 2020-06-05 00:18:36 +03:00
3b87c5f31a Fix #18028: Fix division by zero exception in Table.php::calculateRowHeight 2020-05-18 14:11:43 +03:00
e6c4640c98 Fix #17979: Improve migrate/fresh command description 2020-04-18 11:53:18 +03:00
110199bcfd Fix #17859: Fix loading fixtures under Windows 2020-02-22 17:43:25 +03:00
c41b428088 Fix #17884: Fix 0 values in console Table rendered as empty string 2020-02-21 23:07:25 +03:00
67ff6f814b Fix #17771: migrate/fresh was not returning exit code 2020-01-09 15:31:54 +03:00
b0b1c82ae9 Fix #17648: Handle empty column arrays in console Table widget 2019-11-04 00:43:05 +03:00
e7e72e2ff6 Fix #15526: Show valid aliases and options on invalid input in console application 2019-09-18 01:33:43 +03:00
6e2b1782e5 Fix #16855: Ignore console commands that have no actions 2019-09-10 19:00:43 +03:00
e50a07c30c Fix #17437: Fixed generating namespaced migrations 2019-07-23 17:28:43 +03:00
2b9374558b Fix #17395: Fixed issues with actions that contain underscores in their names 2019-07-08 13:46:43 +03:00
d23537fa26 Fix type annotations 2019-07-02 21:56:01 +03:00
757bc42645 Fixes #17325: Fixed "Cannot drop view" for MySQL while migrate/fresh 2019-06-30 19:53:50 +03:00
0fcd495583 Fixes #16394: Fixed issues in migrate/create when specifying default values with colons and adding multiple columns 2019-06-26 12:44:24 +07:00
c5397f8784 Closes #16411. Fix windows tests (#17380)
* Fix `\yiiunit\framework\helpers\ConsoleTest::testErrorSummary`
* Fix `\yiiunit\framework\console\controllers\PHPMessageControllerTest::testRemoveUnusedBehavior`
2019-06-19 16:48:20 +03:00
a44b307c01 Fixes #16918: Console Table widget variables visibility was changed to protected to allow extending it 2019-05-21 12:46:08 +03:00
0f30174ae6 Fix typo in ExitCode (#17294)
A missing letter, nothing more
2019-04-30 01:36:01 +04:00
5b5150ae62 Fixes #17133: Fixed aliases rendering during help generation for a console command 2019-03-09 15:35:19 +03:00
e6513a2c9e Fixes #17124: Fixed ErrorException when run ./yii fixture/unload without arguments 2019-03-06 17:34:34 +03:00
bdb7c64910 Update to https protocol for php.net links (#17168) [skip ci]
* Updated php.net link for some MemCache properties [skip ci]

* Changed protocol to https for links to php.net in comments

* Changed protocol to https for links to php.net in code

* Changed www.php.net (http) to secure.php.net (https) in comments

* Changed www.php.net (http) to secure.php.net (https) in code

* Changed protocol to https for links to php.net in UPGRADE.md

* Changed protocol to https for links to pecl.php.net in comments

* Changed us.php.net to secure.php.net (https) in comments

* Changed protocol to https for links to php.net in docs

* Changed www.php.net (http) to secure.php.net (https) in docs

* Changed protocol to https for links to pecl.php.net in docs

* Changed ru/jp.php.net to secure.php.net (https) in docs

Don't sure about russian guide: is this links meant to be for guide on russian, or not?
2019-02-28 13:09:27 +03:00