mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #8223 from garas/2.8-AuthComponent-user
Use mixed return type for AuthComponent::user()
This commit is contained in:
commit
6413610e76
1 changed files with 1 additions and 1 deletions
|
@ -655,7 +655,7 @@ class AuthComponent extends Component {
|
|||
* 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) {
|
||||
|
|
Loading…
Reference in a new issue