Project

General

Profile

Actions

Task #97832

closed

Update return type for GeneralUtility::getURL

Added by JAKOTA Design Group GmbH over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
2022-06-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
no-brainer
Sprint Focus:

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.
Actions

Also available in: Atom PDF