Navigation Menu

Skip to content

Commit

Permalink
Use mixed return type for AuthComponent::user()
Browse files Browse the repository at this point in the history
  • Loading branch information
garas committed Feb 9, 2016
1 parent 8b15cf1 commit 5b10e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Controller/Component/AuthComponent.php
Expand Up @@ -655,7 +655,7 @@ public function logout() {
* cookies + sessions will be used.
*
* @param string|null $key field to retrieve. Leave null to get entire User record
* @return array|null User record. or null if no user is logged in.
* @return mixed|null User record. or null if no user is logged in.
* @link http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#accessing-the-logged-in-user
*/
public static function user($key = null) {
Expand Down

0 comments on commit 5b10e3c

Please sign in to comment.