Actions
Bug #92601
closedFrontendUserRepository::fetchUserInformationByEmail() must be of the type array, bool returned
Status:
Closed
Priority:
Should have
Assignee:
Category:
felogin
Target version:
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