@@ -789,7 +789,7 @@ |
||
789 | 789 | * }); |
790 | 790 | * ``` |
791 | 791 | * |
792 | - * @param string|array $url the URL to be redirected to. This can be in one of the following formats: |
|
792 | + * @param string $url the URL to be redirected to. This can be in one of the following formats: |
|
793 | 793 | * |
794 | 794 | * - a string representing a URL (e.g. "http://example.com") |
795 | 795 | * - a string representing a URL alias (e.g. "@example.com") |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | * stored in session and reconstruct the corresponding identity object, if it has not done so before. |
176 | 176 | * @param bool $autoRenew whether to automatically renew authentication status if it has not been done so before. |
177 | 177 | * This is only useful when [[enableSession]] is true. |
178 | - * @return IdentityInterface|null the identity object associated with the currently logged-in user. |
|
178 | + * @return null|boolean the identity object associated with the currently logged-in user. |
|
179 | 179 | * `null` is returned if the user is not logged in (not authenticated). |
180 | 180 | * @see login() |
181 | 181 | * @see logout() |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | * with the provided access token. If successful, it will call [[login()]] to log in the authenticated user. |
260 | 260 | * If authentication fails or [[login()]] is unsuccessful, it will return null. |
261 | 261 | * @param string $token the access token |
262 | - * @param mixed $type the type of the token. The value of this parameter depends on the implementation. |
|
262 | + * @param string $type the type of the token. The value of this parameter depends on the implementation. |
|
263 | 263 | * For example, [[\yii\filters\auth\HttpBearerAuth]] will set this parameter to be `yii\filters\auth\HttpBearerAuth`. |
264 | 264 | * @return IdentityInterface|null the identity associated with the given access token. Null is returned if |
265 | 265 | * the access token is invalid or [[login()]] is unsuccessful. |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * Returns a value indicating whether there is any handler attached to the specified class-level event. |
147 | 147 | * Note that this method will also check all parent classes to see if there is any handler attached |
148 | 148 | * to the named event. |
149 | - * @param string|object $class the object or the fully qualified class name specifying the class-level event. |
|
149 | + * @param Component $class the object or the fully qualified class name specifying the class-level event. |
|
150 | 150 | * @param string $name the event name. |
151 | 151 | * @return bool whether there is any handler attached to the event. |
152 | 152 | */ |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * Triggers a class-level event. |
181 | 181 | * This method will cause invocation of event handlers that are attached to the named event |
182 | 182 | * for the specified class and all its parent classes. |
183 | - * @param string|object $class the object or the fully qualified class name specifying the class-level event. |
|
183 | + * @param Component $class the object or the fully qualified class name specifying the class-level event. |
|
184 | 184 | * @param string $name the event name. |
185 | 185 | * @param Event $event the event parameter. If not set, a default [[Event]] object will be created. |
186 | 186 | */ |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * Removes a cookie. |
135 | 135 | * If `$removeFromBrowser` is true, the cookie will be removed from the browser. |
136 | 136 | * In this case, a cookie with outdated expiry will be added to the collection. |
137 | - * @param Cookie|string $cookie the cookie object or the name of the cookie to be removed. |
|
137 | + * @param string $cookie the cookie object or the name of the cookie to be removed. |
|
138 | 138 | * @param bool $removeFromBrowser whether to remove the cookie from browser |
139 | 139 | * @throws InvalidCallException if the cookie collection is read only |
140 | 140 | */ |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | |
174 | 174 | /** |
175 | 175 | * Returns the collection as a PHP array. |
176 | - * @return array the array representation of the collection. |
|
176 | + * @return Cookie[] the array representation of the collection. |
|
177 | 177 | * The array keys are cookie names, and the array values are the corresponding cookie objects. |
178 | 178 | */ |
179 | 179 | public function toArray() |
@@ -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) { |