Project

General

Profile

Actions

Bug #92601

closed

FrontendUserRepository::fetchUserInformationByEmail() must be of the type array, bool returned

Added by Tymoteusz Motylewski over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Category:
felogin
Start date:
2020-10-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

in TYPO3 v9.5 the method fetchUserInformationByEmail can in some cases return bool instead of declared array.
This result in error like:

TypeError: Uncaught exception 'TypeError' with message 
'Return value of TYPO3\CMS\FrontendLogin\Domain\Repository\FrontendUserRepository::fetchUserInformationByEmail() must be of the type array, 
bool returned' in typo3/sysext/felogin/Classes/Domain/Repository/FrontendUserRepository.php:152

The problem is that the method returns directly what fetch() returns:
return $query->execute()->fetch(FetchMode::ASSOCIATIVE);

and fetch() can return false in some cases.

Actions

Also available in: Atom PDF