@@ -8,7 +8,6 @@ |
||
8 | 8 | namespace yii\db\sqlite; |
9 | 9 | |
10 | 10 | use yii\db\Connection; |
11 | -use yii\db\Exception; |
|
12 | 11 | use yii\base\InvalidParamException; |
13 | 12 | use yii\base\NotSupportedException; |
14 | 13 | use yii\db\Expression; |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | |
368 | 368 | /** |
369 | 369 | * @param array $what list of items |
370 | - * @param array $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension` |
|
370 | + * @param string[] $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension` |
|
371 | 371 | * @throws \yii\base\Exception |
372 | 372 | */ |
373 | 373 | protected function validateWhat(array $what, $limit = [], $ensureGitClean = true) |
@@ -547,6 +547,10 @@ discard block |
||
547 | 547 | |
548 | 548 | } |
549 | 549 | |
550 | + /** |
|
551 | + * @param string $name |
|
552 | + * @param string $path |
|
553 | + */ |
|
550 | 554 | protected function releaseApplication($name, $path, $version) |
551 | 555 | { |
552 | 556 | $this->stdout("\n"); |
@@ -649,6 +653,9 @@ discard block |
||
649 | 653 | Yii::setAlias('@app', $this->_oldAlias); |
650 | 654 | } |
651 | 655 | |
656 | + /** |
|
657 | + * @param string $name |
|
658 | + */ |
|
652 | 659 | protected function packageApplication($name, $version, $packagePath) |
653 | 660 | { |
654 | 661 | FileHelper::createDirectory($packagePath); |
@@ -810,6 +817,9 @@ discard block |
||
810 | 817 | } |
811 | 818 | |
812 | 819 | |
820 | + /** |
|
821 | + * @param string[] $what |
|
822 | + */ |
|
813 | 823 | protected function closeChangelogs($what, $version) |
814 | 824 | { |
815 | 825 | $v = str_replace('\\-', '[\\- ]', preg_quote($version, '/')); |
@@ -821,6 +831,9 @@ discard block |
||
821 | 831 | ); |
822 | 832 | } |
823 | 833 | |
834 | + /** |
|
835 | + * @param string[] $what |
|
836 | + */ |
|
824 | 837 | protected function openChangelogs($what, $version) |
825 | 838 | { |
826 | 839 | $headline = "\n$version under development\n"; |
@@ -977,6 +990,9 @@ discard block |
||
977 | 990 | $frameworkPath . '/BaseYii.php'); |
978 | 991 | } |
979 | 992 | |
993 | + /** |
|
994 | + * @param string $pattern |
|
995 | + */ |
|
980 | 996 | protected function sed($pattern, $replace, $files) |
981 | 997 | { |
982 | 998 | foreach ((array) $files as $file) { |
@@ -1009,6 +1025,9 @@ discard block |
||
1009 | 1025 | const MINOR = 'minor'; |
1010 | 1026 | const PATCH = 'patch'; |
1011 | 1027 | |
1028 | + /** |
|
1029 | + * @param string $type |
|
1030 | + */ |
|
1012 | 1031 | protected function getNextVersions(array $versions, $type) |
1013 | 1032 | { |
1014 | 1033 | foreach ($versions as $k => $v) { |