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

Tested-by: default avatarTYPO3com <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Tested-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
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 = [];
Supports Markdown
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