Issue Task Closed

#97832Update return type for GeneralUtility::getURL

JAKOTA Design Group GmbH 06/29/22, 20:48 updated 10/04/22, 14:05

Description

The return type of this function is set to mixed but can only return a string or false.

Having this set to mixed makes phpstan level 9 compliance more complicated than it needs to.

typo3/sysext/core/Classes/Utility/GeneralUtility.php

Line 1695

is

  • @return mixed The content from the resource given as input. FALSE if an error has occurred.

and should be

  • @return string|false The content from the resource given as input. FALSE if an error has occurred.

Reviews 2