Bug #92601
Updated by Tymoteusz Motylewski over 3 years ago
in TYPO3 v9.5 the method fetchUserInformationByEmail can in some cases return bool instead of declared array. This result in error like: <pre> 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 </pre> 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.