Commit 7d925c56 authored by Oliver Klee's avatar Oliver Klee Committed by Benni Mack
Browse files

[CLEANUP] Fix PHPDoc type annotation for UserAspect::user

The alternative type stdClass is missing from the type annotation.

Also make the return type of createPseudoUser more specific in order
to help static analysis.

Releases: master, 10.4
Resolves: #93118
Change-Id: I54a4665c9b15434b6a59c217dc61d636faf24dbc
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67212

Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent f3e3ab66
......@@ -36,7 +36,7 @@ use TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication;
class UserAspect implements AspectInterface
{
/**
* @var AbstractUserAuthentication
* @var AbstractUserAuthentication|\stdClass
*/
protected $user;
......@@ -58,9 +58,9 @@ class UserAspect implements AspectInterface
}
/**
* @return object
* @return \stdClass
*/
private function createPseudoUser(): object
private function createPseudoUser(): \stdClass
{
$user = new \stdClass();
$user->user = [];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment