diff --git a/src/Controller/Component/AuthComponent.php b/src/Controller/Component/AuthComponent.php
index <HASH>..<HASH> 100644
--- a/src/Controller/Component/AuthComponent.php
+++ b/src/Controller/Component/AuthComponent.php
@@ -656,8 +656,8 @@ class AuthComponent extends Component
     /**
      * Get the current user from storage.
      *
-     * @param string $key Field to retrieve. Leave null to get entire User record.
-     * @return mixed Either User record or null if no user is logged in, or retrieved field if key is specified.
+     * @param string|null $key Field to retrieve. Leave null to get entire User record.
+     * @return mixed|null Either User record or null if no user is logged in, or retrieved field if key is specified.
      * @link http://book.cakephp.org/3.0/en/controllers/components/authentication.html#accessing-the-logged-in-user
      */
     public function user($key = null)
Update phpdoc in AuthComponent