Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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: core-ci <typo3@b13.com> Tested-by: Benni Mack <benni@typo3.org> Tested-by: Richard Haeser <richard@richardhaeser.com> Reviewed-by: Benni Mack <benni@typo3.org> Reviewed-by: Richard Haeser <richard@richardhaeser.com>
- Loading branch information
1 parent
b50d8a7
commit 023864e
Showing
2 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters