Skip to content
Commit 023864e3 authored by Chris Müller's avatar Chris Müller Committed by Richard Haeser
Browse files

[BUGFIX] Correct return type for FileReference methods

The @return annotation for the following FileReference methods is set
to "string", but these methods can also return null:

- getTitle()
- getAlternative()
- getDescription()

To avoid problems with code quality tools and to ensure type
safety the return value of these methods is always casted to a
string.

Resolves: #94144
Releases: master, 10.4
Change-Id: Id28281ca9b55f20fb02e0de3adfe510f88580141
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69155


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarRichard Haeser <richard@richardhaeser.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarRichard Haeser <richard@richardhaeser.com>
parent b50d8a7f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment