Skip to content

Commit

Permalink
[TASK] Improve return type for GeneralUtility:getUrl
Browse files Browse the repository at this point in the history
Set the return type to string|false instead of mixed.

Resolves: #97832
Releases: main, 11.5
Change-Id: I8648392bb8b8d95aaf8ab5416d9e7d1043f8e9b0
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74945
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
georgringer authored and lolli42 committed Jul 1, 2022
1 parent 0b33621 commit eb21c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typo3/sysext/core/Classes/Utility/GeneralUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ public static function minifyJavaScript($script, &$error = '')
* If you are having trouble with proxies when reading URLs you can configure your way out of that with settings within $GLOBALS['TYPO3_CONF_VARS']['HTTP'].
*
* @param string $url File/URL to read
* @return mixed The content from the resource given as input. FALSE if an error has occurred.
* @return string|false The content from the resource given as input. FALSE if an error has occurred.
*/
public static function getUrl($url)
{
Expand Down

0 comments on commit eb21c1d

Please sign in to comment.