Completed
Pull Request — master (#12699)
by Robert
10:59
created
build/controllers/ReleaseController.php 1 patch
Doc Comments   +20 added lines, -1 removed lines patch added patch discarded remove patch
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
 
366 366
     /**
367 367
      * @param array $what list of items
368
-     * @param array $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension`
368
+     * @param string[] $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension`
369 369
      * @throws \yii\base\Exception
370 370
      */
371 371
     protected function validateWhat(array $what, $limit = [], $ensureGitClean = true)
@@ -537,6 +537,10 @@  discard block
 block discarded – undo
537 537
 
538 538
     }
539 539
 
540
+    /**
541
+     * @param string $name
542
+     * @param string $path
543
+     */
540 544
     protected function releaseApplication($name, $path, $version)
541 545
     {
542 546
         $this->stdout("\n");
@@ -637,6 +641,9 @@  discard block
 block discarded – undo
637 641
         Yii::setAlias('@app', $this->_oldAlias);
638 642
     }
639 643
 
644
+    /**
645
+     * @param string $name
646
+     */
640 647
     protected function packageApplication($name, $version, $packagePath)
641 648
     {
642 649
         FileHelper::createDirectory($packagePath);
@@ -796,6 +803,9 @@  discard block
 block discarded – undo
796 803
     }
797 804
 
798 805
 
806
+    /**
807
+     * @param string[] $what
808
+     */
799 809
     protected function closeChangelogs($what, $version)
800 810
     {
801 811
         $v = str_replace('\\-', '[\\- ]', preg_quote($version, '/'));
@@ -807,6 +817,9 @@  discard block
 block discarded – undo
807 817
         );
808 818
     }
809 819
 
820
+    /**
821
+     * @param string[] $what
822
+     */
810 823
     protected function openChangelogs($what, $version)
811 824
     {
812 825
         $headline = "\n$version under development\n";
@@ -957,6 +970,9 @@  discard block
 block discarded – undo
957 970
             $frameworkPath . '/BaseYii.php');
958 971
     }
959 972
 
973
+    /**
974
+     * @param string $pattern
975
+     */
960 976
     protected function sed($pattern, $replace, $files)
961 977
     {
962 978
         foreach((array) $files as $file) {
@@ -989,6 +1005,9 @@  discard block
 block discarded – undo
989 1005
     const MINOR = 'minor';
990 1006
     const PATCH = 'patch';
991 1007
 
1008
+    /**
1009
+     * @param string $type
1010
+     */
992 1011
     protected function getNextVersions(array $versions, $type)
993 1012
     {
994 1013
         foreach($versions as $k => $v) {
Please login to merge, or discard this patch.
framework/base/Event.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      * Returns a value indicating whether there is any handler attached to the specified class-level event.
146 146
      * Note that this method will also check all parent classes to see if there is any handler attached
147 147
      * to the named event.
148
-     * @param string|object $class the object or the fully qualified class name specifying the class-level event.
148
+     * @param Component $class the object or the fully qualified class name specifying the class-level event.
149 149
      * @param string $name the event name.
150 150
      * @return boolean whether there is any handler attached to the event.
151 151
      */
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      * Triggers a class-level event.
180 180
      * This method will cause invocation of event handlers that are attached to the named event
181 181
      * for the specified class and all its parent classes.
182
-     * @param string|object $class the object or the fully qualified class name specifying the class-level event.
182
+     * @param Component $class the object or the fully qualified class name specifying the class-level event.
183 183
      * @param string $name the event name.
184 184
      * @param Event $event the event parameter. If not set, a default [[Event]] object will be created.
185 185
      */
Please login to merge, or discard this patch.
framework/db/TableSchema.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 
74 74
     /**
75 75
      * Returns the names of all columns in this table.
76
-     * @return array list of column names
76
+     * @return integer[] list of column names
77 77
      */
78 78
     public function getColumnNames()
79 79
     {
Please login to merge, or discard this patch.
framework/web/CookieCollection.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      * Removes a cookie.
133 133
      * If `$removeFromBrowser` is true, the cookie will be removed from the browser.
134 134
      * In this case, a cookie with outdated expiry will be added to the collection.
135
-     * @param Cookie|string $cookie the cookie object or the name of the cookie to be removed.
135
+     * @param string $cookie the cookie object or the name of the cookie to be removed.
136 136
      * @param boolean $removeFromBrowser whether to remove the cookie from browser
137 137
      * @throws InvalidCallException if the cookie collection is read only
138 138
      */
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
     /**
173 173
      * Returns the collection as a PHP array.
174
-     * @return array the array representation of the collection.
174
+     * @return Cookie[] the array representation of the collection.
175 175
      * The array keys are cookie names, and the array values are the corresponding cookie objects.
176 176
      */
177 177
     public function toArray()
Please login to merge, or discard this patch.