Completed
Pull Request — master (#12699)
by Robert
12:01
created
framework/web/Response.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -789,7 +789,7 @@
 block discarded – undo
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")
Please login to merge, or discard this patch.
framework/web/User.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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.
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
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
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
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.